summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen7_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/gen7_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/gen7_pipeline.c')
-rw-r--r--src/intel/vulkan/gen7_pipeline.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index dd34d713d47..56e59a4bab5 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -250,7 +250,11 @@ genX(graphics_pipeline_create)(
else
anv_batch_emit(&pipeline->batch, GENX(3DSTATE_VS), vs) {
vs.KernelStartPointer = pipeline->vs_vec4;
- vs.ScratchSpaceBaseOffset = pipeline->scratch_start[MESA_SHADER_VERTEX];
+
+ vs.ScratchSpaceBasePointer = (struct anv_address) {
+ .bo = NULL,
+ .offset = pipeline->scratch_start[MESA_SHADER_VERTEX],
+ };
vs.PerThreadScratchSpace = scratch_space(&vs_prog_data->base.base);
vs.DispatchGRFStartRegisterforURBData =
@@ -270,7 +274,11 @@ genX(graphics_pipeline_create)(
} else {
anv_batch_emit(&pipeline->batch, GENX(3DSTATE_GS), gs) {
gs.KernelStartPointer = pipeline->gs_kernel;
- gs.ScratchSpaceBasePointer = pipeline->scratch_start[MESA_SHADER_GEOMETRY];
+
+ gs.ScratchSpaceBasePointer = (struct anv_address) {
+ .bo = NULL,
+ .offset = pipeline->scratch_start[MESA_SHADER_GEOMETRY],
+ };
gs.PerThreadScratchSpace = scratch_space(&gs_prog_data->base.base);
gs.OutputVertexSize = gs_prog_data->output_vertex_size_hwords * 2 - 1;
@@ -328,7 +336,11 @@ genX(graphics_pipeline_create)(
anv_batch_emit(&pipeline->batch, GENX(3DSTATE_PS), ps) {
ps.KernelStartPointer0 = pipeline->ps_ksp0;
- ps.ScratchSpaceBasePointer = pipeline->scratch_start[MESA_SHADER_FRAGMENT];
+
+ ps.ScratchSpaceBasePointer = (struct anv_address) {
+ .bo = NULL,
+ .offset = pipeline->scratch_start[MESA_SHADER_FRAGMENT],
+ };
ps.PerThreadScratchSpace = scratch_space(&wm_prog_data->base);
ps.MaximumNumberofThreads = device->info.max_wm_threads - 1;
ps.PushConstantEnable = wm_prog_data->base.nr_params > 0;