mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
fix bug with ATI_fragment_shader in swrast (need to copy all 4 values due to later applied srcRep)
This commit is contained in:
parent
8693b70e8f
commit
b683b0df45
1 changed files with 4 additions and 6 deletions
|
|
@ -301,12 +301,10 @@ handle_sample_op(GLcontext * ctx, struct atifs_machine *machine,
|
|||
fetch_texel(ctx, tex_coords, 0.0F, idx, machine->Registers[idx]);
|
||||
}
|
||||
|
||||
#define SETUP_SRC_REG(optype, i, x) do { \
|
||||
if (optype) \
|
||||
src[optype][i][3] = x[3]; \
|
||||
else \
|
||||
COPY_3V(src[optype][i], x); \
|
||||
} while (0)
|
||||
#define SETUP_SRC_REG(optype, i, x) \
|
||||
do { \
|
||||
COPY_4V(src[optype][i], x); \
|
||||
} while (0)
|
||||
|
||||
static GLboolean
|
||||
execute_shader(GLcontext * ctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue