radv: fix emitting invalid color attachments

Note sure how this happened.

Fixes: 97dc28b177 ("radv: fix configuring COLOR_INVALID on GFX11")
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/20127>
(cherry picked from commit 664aa7a37b)
This commit is contained in:
Samuel Pitoiset 2022-12-02 11:39:52 +01:00 committed by Eric Engestrom
parent ff39ada94f
commit b6e7aeb14e
2 changed files with 3 additions and 3 deletions

View file

@ -3883,7 +3883,7 @@
"description": "radv: fix emitting invalid color attachments",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "97dc28b177649e40a4f2a15af65ebb69ee06b6fe"
},

View file

@ -2825,8 +2825,8 @@ radv_emit_framebuffer_state(struct radv_cmd_buffer *cmd_buffer)
int i;
bool disable_constant_encode_ac01 = false;
unsigned color_invalid = cmd_buffer->device->physical_device->rad_info.gfx_level >= GFX11
? G_028C70_FORMAT_GFX11(V_028C70_COLOR_INVALID)
: G_028C70_FORMAT_GFX6(V_028C70_COLOR_INVALID);
? S_028C70_FORMAT_GFX11(V_028C70_COLOR_INVALID)
: S_028C70_FORMAT_GFX6(V_028C70_COLOR_INVALID);
for (i = 0; i < render->color_att_count; ++i) {
struct radv_image_view *iview = render->color_att[i].iview;