radv: only set WRITE_COMPRESS_ENABLE for storage image descriptors
This will allow us to reduce the number of situations where the compiler workaround is needed on GFX10.3. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9924>
This commit is contained in:
parent
00d6ccebf9
commit
5c8a7fa631
|
@ -781,7 +781,8 @@ si_set_mutable_tex_desc_fields(struct radv_device *device,
|
|||
if (plane->surface.dcc_offset)
|
||||
meta = plane->surface.u.gfx9.dcc;
|
||||
|
||||
if (radv_dcc_enabled(image, first_level) && enable_write_compression)
|
||||
if (radv_dcc_enabled(image, first_level) &&
|
||||
is_storage_image && enable_write_compression)
|
||||
state[6] |= S_00A018_WRITE_COMPRESS_ENABLE(1);
|
||||
|
||||
state[6] |= S_00A018_META_PIPE_ALIGNED(meta.pipe_aligned) |
|
||||
|
|
Loading…
Reference in New Issue