summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen7_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-02-27 09:43:14 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2016-02-27 11:23:56 -0800
commite18a2f037a074788ee3cf6cb00697b5b0152fe29 (patch)
tree7fec04315008bc6439c031166331bc9cb2deb293 /src/intel/vulkan/gen7_pipeline.c
parentad50896c8769adcf141619774f8c156a2bcf920a (diff)
downloadexternal_mesa3d-e18a2f037a074788ee3cf6cb00697b5b0152fe29.zip
external_mesa3d-e18a2f037a074788ee3cf6cb00697b5b0152fe29.tar.gz
external_mesa3d-e18a2f037a074788ee3cf6cb00697b5b0152fe29.tar.bz2
anv/gen7: Set MaximumNumberofThreads in the dummy PS packet
Diffstat (limited to 'src/intel/vulkan/gen7_pipeline.c')
-rw-r--r--src/intel/vulkan/gen7_pipeline.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 009a79a..2167f29 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -338,7 +338,11 @@ genX(graphics_pipeline_create)(
.PointRasterizationRule = RASTRULE_UPPER_RIGHT);
- anv_batch_emit(&pipeline->batch, GENX(3DSTATE_PS));
+ /* Even if no fragments are ever dispatched, the hardware hangs if we
+ * don't at least set the maximum number of threads.
+ */
+ anv_batch_emit(&pipeline->batch, GENX(3DSTATE_PS),
+ .MaximumNumberofThreads = device->info.max_wm_threads - 1);
} else {
const struct brw_wm_prog_data *wm_prog_data = &pipeline->wm_prog_data;