pan/mdg: Fix discard encoding

Let's match the blob.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6525>
(cherry picked from commit c8ac01af33)
This commit is contained in:
Alyssa Rosenzweig 2020-08-31 14:04:55 -04:00 committed by Dylan Baker
parent 83dda7b35f
commit 4e57b4680d
2 changed files with 3 additions and 2 deletions

View file

@ -625,7 +625,7 @@
"description": "pan/mdg: Fix discard encoding",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -641,7 +641,8 @@ emit_branch(midgard_instruction *ins,
int quadword_offset = 0;
if (is_discard) {
/* Ignored */
/* Fixed encoding, not actually an offset */
quadword_offset = 0x2;
} else if (is_tilebuf_wait) {
quadword_offset = -1;
} else if (target_number > block->base.name) {