mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
iris: Only request an input mask if the shader needs it
Fixes: aebca3961b "iris: Fix handling of SIMD32 fragment shaders"
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
dcad15ff54
commit
16edd02bfa
1 changed files with 3 additions and 1 deletions
|
|
@ -4778,7 +4778,9 @@ iris_upload_dirty_render_state(struct iris_context *ice,
|
|||
uint32_t psx_state[GENX(3DSTATE_PS_EXTRA_length)] = {0};
|
||||
iris_pack_command(GENX(3DSTATE_PS_EXTRA), psx_state, psx) {
|
||||
#if GEN_GEN >= 9
|
||||
if (wm_prog_data->post_depth_coverage)
|
||||
if (!wm_prog_data->uses_sample_mask)
|
||||
psx.InputCoverageMaskState = ICMS_NONE;
|
||||
else if (wm_prog_data->post_depth_coverage)
|
||||
psx.InputCoverageMaskState = ICMS_DEPTH_COVERAGE;
|
||||
else if (wm_prog_data->inner_coverage &&
|
||||
cso->conservative_rasterization)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue