projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
897f40f
)
r600g: document why texture offset emulation is needed
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 9 Mar 2014 23:19:21 +0000
(
00:19
+0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Sun, 9 Mar 2014 23:19:59 +0000
(
00:19
+0100)
src/gallium/drivers/r600/r600_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_shader.c
b/src/gallium/drivers/r600/r600_shader.c
index 0016d29a2a88bd173dcf3673d64bb76cdec256d8..ddf79eee9309c5a75396b59635fc2fe23517a668 100644
(file)
--- a/
src/gallium/drivers/r600/r600_shader.c
+++ b/
src/gallium/drivers/r600/r600_shader.c
@@
-4800,8
+4800,9
@@
static int tgsi_tex(struct r600_shader_ctx *ctx)
if (inst->Texture.NumOffsets) {
assert(inst->Texture.NumOffsets == 1);
+ /* The texture offset feature doesn't work with the TXF instruction
+ * and must be emulated by adding the offset to the texture coordinates. */
if (txf_add_offsets) {
- /* Add the offsets for texelFetch manually. */
const struct tgsi_texture_offset *off = inst->TexOffsets;
switch (inst->Texture.Texture) {