mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
vc4: Add missing sRGB decode to texel fetches.
We only see txf on MSAA textures, currently, and apparently this didn't impact any of our piglit tests.
This commit is contained in:
parent
f01ca9eeda
commit
7a9eb76786
1 changed files with 5 additions and 0 deletions
|
|
@ -328,6 +328,11 @@ ntq_emit_txf(struct vc4_compile *c, nir_tex_instr *instr)
|
|||
for (int i = 0; i < 4; i++)
|
||||
dest[i] = qir_UNPACK_8_F(c, tex, i);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (c->tex_srgb_decode[unit] & (1 << i))
|
||||
dest[i] = qir_srgb_decode(c, dest[i]);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue