mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
r600g: document why texture offset emulation is needed
This commit is contained in:
parent
897f40f25d
commit
9c2a3934c5
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue