mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-06 21:10:23 +01:00
r600g: no need to do CUBE coordinate handling for TXQ.
Fixes texSize on cube. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
8b1471f8ca
commit
261dc72fe3
1 changed files with 3 additions and 1 deletions
|
|
@ -3184,7 +3184,9 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
|
|||
src_gpr = ctx->temp_reg;
|
||||
}
|
||||
|
||||
if (inst->Texture.Texture == TGSI_TEXTURE_CUBE) {
|
||||
if (inst->Texture.Texture == TGSI_TEXTURE_CUBE &&
|
||||
inst->Instruction.Opcode != TGSI_OPCODE_TXQ) {
|
||||
|
||||
static const unsigned src0_swizzle[] = {2, 2, 0, 1};
|
||||
static const unsigned src1_swizzle[] = {1, 0, 2, 2};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue