diff options
author | Kenneth Graunke <[email protected]> | 2017-05-15 16:15:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-06-01 11:49:46 -0700 |
commit | fe9699dcb491d07f5b629828fd0d3dad5a213318 (patch) | |
tree | 9027cc2b28b4861332700857ef1fb59b90c1dc6a /src/mesa/drivers/dri | |
parent | 12303bd390b24b567505b3af5bd467a0636a2f2a (diff) |
genxml: Make 3DSTATE_CONSTANT_BODY on Gen7+ use arrays.
This will let us initialize the constant buffers with loops.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_state_upload.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index 1f05eea4426..cc6542163eb 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -2674,14 +2674,12 @@ upload_constant_state(struct brw_context *brw, pkt._3DCommandSubOpcode = push_constant_opcodes[stage]; if (active) { #if GEN_GEN >= 8 || GEN_IS_HASWELL - pkt.ConstantBody.ConstantBuffer2ReadLength = - stage_state->push_const_size; - pkt.ConstantBody.PointerToConstantBuffer2 = + pkt.ConstantBody.ReadLength[2] = stage_state->push_const_size; + pkt.ConstantBody.Buffer[2] = render_ro_bo(brw->curbe.curbe_bo, stage_state->push_const_offset); #else - pkt.ConstantBody.ConstantBuffer0ReadLength = - stage_state->push_const_size; - pkt.ConstantBody.PointerToConstantBuffer0.offset = + pkt.ConstantBody.ReadLength[0] = stage_state->push_const_size; + pkt.ConstantBody.Buffer[0].offset = stage_state->push_const_offset | mocs; #endif } |