summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-04-18 15:29:42 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-20 14:54:09 -0700
commitdba3727bea3df8c3d6529109474b0ee7fcead731 (patch)
tree9094461d1cabeb7c547d749eee8267a8480d2f2d /src/intel/vulkan/genX_pipeline.c
parenta48f8340d95eaf468c5f79bead0c1dad9d1cb6b4 (diff)
downloadexternal_mesa3d-dba3727bea3df8c3d6529109474b0ee7fcead731.zip
external_mesa3d-dba3727bea3df8c3d6529109474b0ee7fcead731.tar.gz
external_mesa3d-dba3727bea3df8c3d6529109474b0ee7fcead731.tar.bz2
anv/genX_pipeline: Use the new emit macro
Acked-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index cc8841e..776415a 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -105,23 +105,24 @@ genX(compute_pipeline_create)(
const uint32_t vfe_curbe_allocation =
push_constant_regs * pipeline->cs_thread_width_max;
- anv_batch_emit(&pipeline->batch, GENX(MEDIA_VFE_STATE),
- .ScratchSpaceBasePointer = pipeline->scratch_start[MESA_SHADER_COMPUTE],
- .PerThreadScratchSpace = ffs(cs_prog_data->base.total_scratch / 2048),
+ anv_batch_emit_blk(&pipeline->batch, GENX(MEDIA_VFE_STATE), vfe) {
+ vfe.ScratchSpaceBasePointer = pipeline->scratch_start[MESA_SHADER_COMPUTE];
+ vfe.PerThreadScratchSpace = ffs(cs_prog_data->base.total_scratch / 2048);
#if GEN_GEN > 7
- .ScratchSpaceBasePointerHigh = 0,
- .StackSize = 0,
+ vfe.ScratchSpaceBasePointerHigh = 0;
+ vfe.StackSize = 0;
#else
- .GPGPUMode = true,
+ vfe.GPGPUMode = true;
#endif
- .MaximumNumberofThreads = device->info.max_cs_threads - 1,
- .NumberofURBEntries = GEN_GEN <= 7 ? 0 : 2,
- .ResetGatewayTimer = true,
+ vfe.MaximumNumberofThreads = device->info.max_cs_threads - 1;
+ vfe.NumberofURBEntries = GEN_GEN <= 7 ? 0 : 2;
+ vfe.ResetGatewayTimer = true;
#if GEN_GEN <= 8
- .BypassGatewayControl = true,
+ vfe.BypassGatewayControl = true;
#endif
- .URBEntryAllocationSize = GEN_GEN <= 7 ? 0 : 2,
- .CURBEAllocationSize = vfe_curbe_allocation);
+ vfe.URBEntryAllocationSize = GEN_GEN <= 7 ? 0 : 2;
+ vfe.CURBEAllocationSize = vfe_curbe_allocation;
+ }
*pPipeline = anv_pipeline_to_handle(pipeline);