projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f01ca9e
)
vc4: Add missing sRGB decode to texel fetches.
author
Eric Anholt
<eric@anholt.net>
Wed, 6 Jan 2016 00:36:28 +0000
(16:36 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 6 Jan 2016 20:43:09 +0000
(12:43 -0800)
We only see txf on MSAA textures, currently, and apparently this didn't
impact any of our piglit tests.
src/gallium/drivers/vc4/vc4_program.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_program.c
b/src/gallium/drivers/vc4/vc4_program.c
index 9d686f72877d7411cd84e914f6816376b6964c73..e04cca1c09d2b353ec892749b18be21007c8c718 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_program.c
+++ b/
src/gallium/drivers/vc4/vc4_program.c
@@
-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