tools/null_state/gen9: Send atleast one valid component in VF state
Subsystems (2)
PATCH 1/1 tools/null_state/gen9: Send atleast one valid component in VF state
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled.
--- tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
tools/null_state_gen/intel_renderstate_gen9.c +6 -1
@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)/* Vertex buffers */ gen8_emit_vertex_buffers (batch);gen8_emit_vertex_elements (batch); -OUT_CMD (GEN9_3DSTATE_COMPONENT_PACKING ,5 ); + +OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); +OUT_BATCH (1 ); +OUT_BATCH (0 ); +OUT_BATCH (0 ); +OUT_BATCH (0 );OUT_BATCH (GEN6_3DSTATE_VF_STATISTICS |1 /* Enable */ );
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915/gen9: Update null batch to follow VF state restriction
Atleast one component of one valid vertex element must be enabled.
--- drivers/gpu/drm/i915/intel_renderstate_gen9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_renderstate_gen9.c +1 -1
@@ -873,7 +873,7 @@ static const u32 gen9_null_state_batch[] = {0x00000000 ,0x00000000 ,0x78550003 , -0x00000000 , +0x00000001 ,0x00000000 ,0x00000000 , 0x00000000,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/gen9: Update null batch to follow VF state restriction
Quoted 14 lines · Arun Siluvery
Atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>--- drivers/gpu/drm/i915/intel_renderstate_gen9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_renderstate_gen9.c +0
-0
drivers/gpu/drm/i915/intel_renderstate_gen9.c static const u32 gen9_null_state_batch[] = { · line 879
Quoted 8 lines
drivers/gpu/drm/i915/intel_renderstate_gen9.c +1
-1@@ -873,7 +873,7 @@ static const u32 gen9_null_state_batch[] = {0x00000000 ,0x00000000 ,0x78550003 , -0x00000000 , +0x00000001 ,0x00000000 ,0x00000000 , 0x00000000,
Same as previous comment in patch 1, but silly programming is better than definitely incorrect programming. With the comments from 1 addressed:
Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/gen9: Update null batch to follow VF state restriction
In reply to Arun SiluveryQuoted 6 lines · Arun Siluvery
Atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>---
Please resend the newly generated one when the IGT parts are merged. That way we get the igt version info in the comment to match.
-Mika
Quoted 23 lines
drivers/gpu/drm/i915/intel_renderstate_gen9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_renderstate_gen9.c +1
-1@@ -873,7 +873,7 @@ static const u32 gen9_null_state_batch[] = {0x00000000 ,0x00000000 ,0x78550003 , -0x00000000 , +0x00000001 ,0x00000000 ,0x00000000 , 0x00000000,Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/gen9: Update null batch to follow VF state restriction
In reply to Arun SiluveryTask id: 6912 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
ILK -1 302/302 301/302
SNB 315/315 315/315 IVB 336/336 336/336
BYT -2 283/283 281/283
HSW 378/378 378/378
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
*ILK igt@kms_flip@flip-vs-dpms-interruptible PASS(1) DMESG_WARN(1) *BYT igt@gem_partial_pwrite_pread@reads-uncached PASS(1) FAIL(1) *BYT igt@gem_persistent_relocs@interruptible PASS(1) FAIL(1)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Arun Siluvery
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>
Quoted 29 lines
--- tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)tools/null_state_gen/intel_renderstate_gen9.c +6
-1@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)/* Vertex buffers */ gen8_emit_vertex_buffers (batch);gen8_emit_vertex_elements (batch); -OUT_CMD (GEN9_3DSTATE_COMPONENT_PACKING ,5 ); + +OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); +OUT_BATCH (1 ); +OUT_BATCH (0 ); +OUT_BATCH (0 ); +OUT_BATCH (0 );OUT_BATCH (GEN6_3DSTATE_VF_STATISTICS |1 /* Enable */ );Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 18 lines · Arun Siluvery
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>--- tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)tools/null_state_gen/intel_renderstate_gen9.c +0
-0@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)/* Vertex buffers */ gen8_emit_vertex_buffers (batch);gen8_emit_vertex_elements (batch);
tools/null_state_gen/intel_renderstate_gen9.c int gen9_setup_null_render_state(struct intel_batchbuffer *batch) · line 451
Quoted 10 lines
tools/null_state_gen/intel_renderstate_gen9.c +6
-1-OUT_CMD (GEN9_3DSTATE_COMPONENT_PACKING ,5 ); + +OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); +OUT_BATCH (1 ); +OUT_BATCH (0 ); +OUT_BATCH (0 ); +OUT_BATCH (0 );OUT_BATCH (GEN6_3DSTATE_VF_STATISTICS |1 /* Enable */ );
Like I said on IRC, I don't think this does anything unless you set bit 9 of 3DSTATE_VF.0. Also, I believe you should be setting 0xf, not 1 since you'd want to use all 4 components.
So I'm not really sure what we're aiming to do. If you make it 0xf, and add a comment about how this command doesn't do anything because we're not setting up 3DSTATE_VF packing, it's:
I'm still more in favor of dropping the command altogether, that too would be:
Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 34 lines · Ben Widawsky
Quoted 18 lines · Arun Siluvery
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>--- tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)tools/null_state_gen/intel_renderstate_gen9.c +0
-0@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)/* Vertex buffers */ gen8_emit_vertex_buffers (batch);gen8_emit_vertex_elements (batch);tools/null_state_gen/intel_renderstate_gen9.c int gen9_setup_null_render_state(struct intel_batchbuffer *batch) · line 451
Quoted 10 lines
tools/null_state_gen/intel_renderstate_gen9.c +6
-1-OUT_CMD (GEN9_3DSTATE_COMPONENT_PACKING ,5 ); + +OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); +OUT_BATCH (1 ); +OUT_BATCH (0 ); +OUT_BATCH (0 ); +OUT_BATCH (0 );OUT_BATCH (GEN6_3DSTATE_VF_STATISTICS |1 /* Enable */ );Like I said on IRC, I don't think this does anything unless you set bit 9 of 3DSTATE_VF.0. Also, I believe you should be setting
0xf, not 1 since you'd want to use all 4 components.
Quoted 7 lines
So I'm not really sure what we're aiming to do. If you make it
0xf, and add a comment about how this command doesn't do anything because we're not setting up 3DSTATE_VF packing, it's:Reviewed-by Ben Widawsky <[email protected]>I'm still more in favor of dropping the command altogether, that too would be:
Reviewed-by Ben Widawsky <[email protected]>
We are trying here just to satisfy the minimum requirements the bspec states.
The bspec also states that with gen9+, the 3d pipeline state doesn't need to be initialized. We should seek confirmation about this and if it is so, remove the null state for gen9+.
-Mika
Quoted 7 lines
Signature · 6 lines
-- Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 41 lines · Mika Kuoppala
Quoted 39 lines · Ben Widawsky
Quoted 18 lines · Arun Siluvery
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>--- tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)tools/null_state_gen/intel_renderstate_gen9.c +0
-0@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)/* Vertex buffers */ gen8_emit_vertex_buffers (batch);gen8_emit_vertex_elements (batch);tools/null_state_gen/intel_renderstate_gen9.c int gen9_setup_null_render_state(struct intel_batchbuffer *batch) · line 451
Quoted 10 lines
tools/null_state_gen/intel_renderstate_gen9.c +6
-1-OUT_CMD (GEN9_3DSTATE_COMPONENT_PACKING ,5 ); + +OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); +OUT_BATCH (1 ); +OUT_BATCH (0 ); +OUT_BATCH (0 ); +OUT_BATCH (0 );OUT_BATCH (GEN6_3DSTATE_VF_STATISTICS |1 /* Enable */ );Like I said on IRC, I don't think this does anything unless you set bit 9 of 3DSTATE_VF.0. Also, I believe you should be setting
0xf, not 1 since you'd want to use all 4 components.So I'm not really sure what we're aiming to do. If you make it
0xf, and add a comment about how this command doesn't do anything because we're not setting up 3DSTATE_VF packing, it's:Reviewed-by Ben Widawsky <[email protected]>
Quoted 6 lines
Quoted 2 lines
I'm still more in favor of dropping the command altogether, that too would be:
Reviewed-by Ben Widawsky <[email protected]>We are trying here just to satisfy the minimum requirements the bspec states.
Right, except I am saying at least set minimal state which makes sense. Packing 1 component of the vertex element makes little sense (though doing this at all makes even less sense).
Quoted 4 lines
The bspec also states that with gen9+, the 3d pipeline state doesn't need to be initialized. We should seek confirmation about this and if it is so, remove the null state for gen9+.
That would be super terrific.
Quoted 9 lines
-Mika
Quoted 7 lines
Signature · 6 lines
-- Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 34 lines · Ben Widawsky
Quoted 18 lines · Arun Siluvery
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled.
Cc Ben Widawsky <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Arun Siluvery <[email protected]>--- tools/null_state_gen/intel_renderstate_gen9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)tools/null_state_gen/intel_renderstate_gen9.c +0
-0@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)/* Vertex buffers */ gen8_emit_vertex_buffers (batch);gen8_emit_vertex_elements (batch);tools/null_state_gen/intel_renderstate_gen9.c int gen9_setup_null_render_state(struct intel_batchbuffer *batch) · line 451
Quoted 10 lines
tools/null_state_gen/intel_renderstate_gen9.c +6
-1-OUT_CMD (GEN9_3DSTATE_COMPONENT_PACKING ,5 ); + +OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); +OUT_BATCH (1 ); +OUT_BATCH (0 ); +OUT_BATCH (0 ); +OUT_BATCH (0 );OUT_BATCH (GEN6_3DSTATE_VF_STATISTICS |1 /* Enable */ );Like I said on IRC, I don't think this does anything unless you set bit 9 of 3DSTATE_VF.0. Also, I believe you should be setting
0xf, not 1 since you'd want to use all 4 components.
Quoted 5 lines
So I'm not really sure what we're aiming to do. If you make it
0xf, and add a comment about how this command doesn't do anything because we're not setting up 3DSTATE_VF packing, it's:Reviewed-by Ben Widawsky <[email protected]>
I messed with this one. The version with 0x1 went with your r-b. The generator side change only so we can amend the version that gets committed to kernel side still.
Sorry about this.
-Mika
Quoted 9 lines
I'm still more in favor of dropping the command altogether, that too would be:
Reviewed-by Ben Widawsky <[email protected]>Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 tools/null_state/gen9: Send all components in VF state
Fix
commit 59cdc16b1a6f069f944ff17851a59edf8f72d45d
Author: Arun Siluvery <[email protected]> Date: Fri Jul 31 16:27:07 2015 +0100
tools/null_state/gen9: Send atleast one valid component in VF state
to honor the Reviewed-by, send all four components as noted by Ben in his review.
--- tools/null_state_gen/intel_renderstate_gen9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/null_state_gen/intel_renderstate_gen9.c +1 -1
@@ -442,7 +442,7 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)gen8_emit_vertex_elements (batch);OUT_BATCH (GEN9_3DSTATE_COMPONENT_PACKING |3 ); -OUT_BATCH (1 ); +OUT_BATCH (0xf );OUT_BATCH (0 );OUT_BATCH (0 );OUT_BATCH (0 );
Signature · 6 lines
2.1.4 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] tools/null_state/gen9: Send all components in VF state
Quoted 6 lines · Mika Kuoppala
Fix
commit
59cdc16b1a6f069f944ff17851a59edf8f72d45dAuthor: Arun Siluvery <[email protected]> Date: Fri Jul 31 16:27:07 2015 +0100
Quoted 8 lines
tools/null_state/gen9: Send atleast one valid component in VF stateto honor the Reviewed-by, send all four components as noted by Ben in his review.
Cc Ben Widawsky <[email protected]>Cc Arun Siluvery <[email protected]>Signed-off-by Mika Kuoppala <[email protected]>
Thanks. (STILL in favor of just dropping it :P )
Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] tools/null_state/gen9: Send all components in VF state
In reply to Mika KuoppalaQuoted 6 lines · Mika Kuoppala
Fix
commit
59cdc16b1a6f069f944ff17851a59edf8f72d45dAuthor: Arun Siluvery <[email protected]> Date: Fri Jul 31 16:27:07 2015 +0100
Quoted 8 lines
tools/null_state/gen9: Send atleast one valid component in VF stateto honor the Reviewed-by, send all four components as noted by Ben in his review.
Cc Ben Widawsky <[email protected]>Cc Arun Siluvery <[email protected]>Signed-off-by Mika Kuoppala <[email protected]>
Mika, did you forget something? The kernel patch?
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] tools/null_state/gen9: Send all components in VF state
Quoted 12 lines · Chris Wilson
Quoted 11 lines · Mika Kuoppala
Fix
commit
59cdc16b1a6f069f944ff17851a59edf8f72d45dAuthor: Arun Siluvery <[email protected]> Date: Fri Jul 31 16:27:07 2015 +0100
tools/null_state/gen9: Send atleast one valid component in VF stateto honor the Reviewed-by, send all four components as noted by Ben in his review.
Quoted 9 lines
Quoted 3 lines
Cc Ben Widawsky <[email protected]>Cc Arun Siluvery <[email protected]>Signed-off-by Mika Kuoppala <[email protected]>Mika, did you forget something? The kernel patch?
-ChrisSignature · 1 line
Chris Wilson, Intel Open Source Technology Centre
When you guys have a stable I-G-T I'd strongly advocate for removing null state on gen9 and seeing if it actually hurts anything.
Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx