From d18a0d955eb307e242cbb32134849bb95a88ecb6 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Wed, 28 Mar 2018 01:29:18 -0700 Subject: anv/gen9+: Initialize new fields in STATE_BASE_ADDRESS Ref: 263b584d5e4 "i965/skl: Emit extra zeros in STATE_BASE_ADDRESS on Skylake." Signed-off-by: Jordan Justen Reviewed-by: Rafael Antognolli --- src/intel/vulkan/genX_cmd_buffer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/intel/vulkan/genX_cmd_buffer.c') diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index c3a7e5c83c3..43a02f22567 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -121,6 +121,18 @@ genX(cmd_buffer_emit_state_base_address)(struct anv_cmd_buffer *cmd_buffer) sba.IndirectObjectBufferSizeModifyEnable = true; sba.InstructionBufferSize = 0xfffff; sba.InstructionBuffersizeModifyEnable = true; +# endif +# if (GEN_GEN >= 9) + sba.BindlessSurfaceStateBaseAddress = (struct anv_address) { NULL, 0 }; + sba.BindlessSurfaceStateMemoryObjectControlState = GENX(MOCS); + sba.BindlessSurfaceStateBaseAddressModifyEnable = true; + sba.BindlessSurfaceStateSize = 0; +# endif +# if (GEN_GEN >= 10) + sba.BindlessSamplerStateBaseAddress = (struct anv_address) { NULL, 0 }; + sba.BindlessSamplerStateMemoryObjectControlState = GENX(MOCS); + sba.BindlessSamplerStateBaseAddressModifyEnable = true; + sba.BindlessSamplerStateBufferSize = 0; # endif } -- cgit v1.2.3