mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
r600g: fix segfault if texture operand is a literal
This fixes Bug 33262
This commit is contained in:
parent
3ee60a3558
commit
a124490262
1 changed files with 3 additions and 1 deletions
|
|
@ -1838,7 +1838,9 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
|
|||
for (i = 0; i < 4; i++) {
|
||||
memset(&alu, 0, sizeof(struct r600_bc_alu));
|
||||
alu.inst = CTX_INST(V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOV);
|
||||
alu.src[0].sel = src_gpr;
|
||||
r = tgsi_src(ctx, &inst->Src[0], &alu.src[0]);
|
||||
if (r)
|
||||
return r;
|
||||
alu.src[0].chan = tgsi_chan(&inst->Src[0], i);
|
||||
alu.dst.sel = ctx->temp_reg;
|
||||
alu.dst.chan = i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue