anv: never emit 3DSTATE_CPS in the pipeline batch
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220>
This commit is contained in:
committed by
Marge Bot
parent
168b13364f
commit
ce8bb29342
@@ -949,19 +949,6 @@ emit_ms_state(struct anv_graphics_pipeline *pipeline,
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
emit_3dstate_cps(struct anv_graphics_pipeline *pipeline, uint32_t dynamic_states)
|
||||
{
|
||||
#if GFX_VER >= 11
|
||||
if (!(dynamic_states & ANV_CMD_DIRTY_DYNAMIC_SHADING_RATE) &&
|
||||
pipeline->base.device->vk.enabled_extensions.KHR_fragment_shading_rate) {
|
||||
genX(emit_shading_rate)(&pipeline->base.batch,
|
||||
pipeline,
|
||||
&pipeline->dynamic_state);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
const uint32_t genX(vk_to_intel_logic_op)[] = {
|
||||
[VK_LOGIC_OP_COPY] = LOGICOP_COPY,
|
||||
[VK_LOGIC_OP_CLEAR] = LOGICOP_CLEAR,
|
||||
@@ -2901,8 +2888,6 @@ genX(graphics_pipeline_create)(
|
||||
|
||||
emit_3dstate_vf_statistics(pipeline);
|
||||
|
||||
emit_3dstate_cps(pipeline, dynamic_states);
|
||||
|
||||
emit_3dstate_streamout(pipeline, pCreateInfo->pRasterizationState,
|
||||
dynamic_states);
|
||||
#if GFX_VERx10 >= 125
|
||||
|
||||
@@ -323,7 +323,8 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer)
|
||||
struct anv_dynamic_state *d = &cmd_buffer->state.gfx.dynamic;
|
||||
|
||||
#if GFX_VER >= 11
|
||||
if (cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_SHADING_RATE)
|
||||
if (cmd_buffer->device->vk.enabled_extensions.KHR_fragment_shading_rate &&
|
||||
cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_SHADING_RATE)
|
||||
genX(emit_shading_rate)(&cmd_buffer->batch, pipeline, d);
|
||||
#endif /* GFX_VER >= 11 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user