mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
properly init dst reg's CondMask/Swizzle fields
This commit is contained in:
parent
e69943e6dd
commit
112a1580f6
2 changed files with 5 additions and 5 deletions
|
|
@ -462,8 +462,8 @@ static void emit_dst( struct prog_dst_register *dst,
|
|||
dst->File = ureg.file;
|
||||
dst->Index = ureg.idx;
|
||||
dst->WriteMask = mask;
|
||||
dst->CondMask = 0;
|
||||
dst->CondSwizzle = 0;
|
||||
dst->CondMask = COND_TR; /* always pass cond test */
|
||||
dst->CondSwizzle = SWIZZLE_NOOP;
|
||||
}
|
||||
|
||||
static struct prog_instruction *
|
||||
|
|
|
|||
|
|
@ -488,8 +488,8 @@ static void emit_dst( struct prog_dst_register *dst,
|
|||
dst->Index = reg.idx;
|
||||
/* allow zero as a shorthand for xyzw */
|
||||
dst->WriteMask = mask ? mask : WRITEMASK_XYZW;
|
||||
dst->CondMask = COND_TR;
|
||||
dst->CondSwizzle = 0;
|
||||
dst->CondMask = COND_TR; /* always pass cond test */
|
||||
dst->CondSwizzle = SWIZZLE_NOOP;
|
||||
dst->CondSrc = 0;
|
||||
dst->pad = 0;
|
||||
}
|
||||
|
|
@ -512,7 +512,7 @@ static void debug_insn( struct prog_instruction *inst, const char *fn,
|
|||
|
||||
|
||||
static void emit_op3fn(struct tnl_program *p,
|
||||
GLuint op,
|
||||
enum prog_opcode op,
|
||||
struct ureg dest,
|
||||
GLuint mask,
|
||||
struct ureg src0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue