mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 01:30:36 +02:00
r600g: Move declaration before code.
Fixes SCons build.
This commit is contained in:
parent
cc09dc2773
commit
6a20539580
1 changed files with 5 additions and 2 deletions
|
|
@ -651,6 +651,9 @@ static int tgsi_lit(struct r600_shader_ctx *ctx)
|
|||
|
||||
if (inst->Dst[0].Register.WriteMask & (1 << 2))
|
||||
{
|
||||
int chan;
|
||||
int sel;
|
||||
|
||||
/* dst.z = log(src.y) */
|
||||
memset(&alu, 0, sizeof(struct r600_bc_alu));
|
||||
alu.inst = V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_LOG_CLAMPED;
|
||||
|
|
@ -665,8 +668,8 @@ static int tgsi_lit(struct r600_shader_ctx *ctx)
|
|||
if (r)
|
||||
return r;
|
||||
|
||||
int chan = alu.dst.chan;
|
||||
int sel = alu.dst.sel;
|
||||
chan = alu.dst.chan;
|
||||
sel = alu.dst.sel;
|
||||
|
||||
/* tmp.x = amd MUL_LIT(src.w, dst.z, src.x ) */
|
||||
memset(&alu, 0, sizeof(struct r600_bc_alu));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue