summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-16 14:58:25 -0700
committerJason Ekstrand <[email protected]>2016-06-22 12:39:42 -0700
commit45c0f60999587ed29a7a9b81f09950dd8f58fb49 (patch)
tree682f931b356642206724a5e794cbf336e2d6ae9c /src/intel/vulkan/genX_pipeline.c
parent966bed17c1a04854b4a422d90de81744556204b6 (diff)
genxml: Make ScratchSpaceBasePointer an address instead of an offset
While we're here, we also fixup MEDIA_VFE_STATE and rename the field in 3DSTATE_VS on gen6-7.5 to be consistent with the others. Signed-off-by: Jason Ekstrand <[email protected]> Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 458e80c82b1..736044889b8 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -102,10 +102,12 @@ genX(compute_pipeline_create)(
cs_prog_data->push.cross_thread.regs, 2);
anv_batch_emit(&pipeline->batch, GENX(MEDIA_VFE_STATE), vfe) {
- vfe.ScratchSpaceBasePointer = pipeline->scratch_start[MESA_SHADER_COMPUTE];
+ vfe.ScratchSpaceBasePointer = (struct anv_address) {
+ .bo = NULL,
+ .offset = pipeline->scratch_start[MESA_SHADER_COMPUTE],
+ };
vfe.PerThreadScratchSpace = ffs(cs_prog_data->base.total_scratch / 2048);
#if GEN_GEN > 7
- vfe.ScratchSpaceBasePointerHigh = 0;
vfe.StackSize = 0;
#else
vfe.GPGPUMode = true;