summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-03-10 00:19:21 +0100
committerMarek Olšák <[email protected]>2014-03-10 00:19:59 +0100
commit9c2a3934c5e039d996c721478eeb1fa3f956904e (patch)
tree1ca3ebd10d845cdd8fdc7b9f97dc1cad46f547f6 /src/gallium/drivers
parent897f40f25d21af678b1b67c1a68c4a6722d19983 (diff)
r600g: document why texture offset emulation is needed
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 0016d29a2a8..ddf79eee930 100644
--- 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) {