mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
pan/bi: Document constant related errata(?)
We're not totally sure what's up with this but Connor says if you violate it Bad Things happen in your shader. I think this might be an issue affecting early Bifrost (G71, ..?); when we know more we can look into patching in a fix. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
This commit is contained in:
parent
eb590a98d2
commit
d2d0de962e
1 changed files with 5 additions and 0 deletions
|
|
@ -574,6 +574,11 @@ bi_pack_constants(bi_context *ctx, bi_clause *clause,
|
|||
.imm_2 = only ? 0 : clause->constants[index + 1] >> 4
|
||||
};
|
||||
|
||||
/* XXX: On G71, Connor observed that the difference of the top 4 bits
|
||||
* of the second constant with the first must be less than 8, otherwise
|
||||
* we have to swap them. I am not able to reproduce this on G52,
|
||||
* further investigation needed. Possibly an errata. XXX */
|
||||
|
||||
util_dynarray_append(emission, struct bifrost_fmt_constant, quad);
|
||||
|
||||
return 2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue