radv: reduce the number of allocated dwords for compute CS
[mesa.git] / src / amd / vulkan / radv_pipeline.c
index 6cd0367215254a39e452e22579165e464124d3e4..e3b37ea2f944b262fa47cd80a793c90f5023232c 100644 (file)
@@ -5028,7 +5028,7 @@ radv_compute_generate_pm4(struct radv_pipeline *pipeline)
        unsigned max_waves_per_sh = 0;
        uint64_t va;
 
-       pipeline->cs.max_dw = device->physical_device->rad_info.chip_class >= GFX10 ? 22 : 20;
+       pipeline->cs.max_dw = device->physical_device->rad_info.chip_class >= GFX10 ? 19 : 16;
        pipeline->cs.buf = malloc(pipeline->cs.max_dw * 4);
 
        compute_shader = pipeline->shaders[MESA_SHADER_COMPUTE];