mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
fix array indexing for UP4B and UP4UB
This commit is contained in:
parent
eeb5eeb2a6
commit
388c455960
1 changed files with 6 additions and 6 deletions
|
|
@ -1215,9 +1215,9 @@ execute_program( GLcontext *ctx,
|
|||
const GLuint *rawBits = (const GLuint *) a;
|
||||
fetch_vector1( ctx, &inst->SrcReg[0], machine, program, a );
|
||||
result[0] = (((rawBits[0] >> 0) & 0xff) - 128) / 127.0F;
|
||||
result[0] = (((rawBits[0] >> 8) & 0xff) - 128) / 127.0F;
|
||||
result[0] = (((rawBits[0] >> 16) & 0xff) - 128) / 127.0F;
|
||||
result[0] = (((rawBits[0] >> 24) & 0xff) - 128) / 127.0F;
|
||||
result[1] = (((rawBits[0] >> 8) & 0xff) - 128) / 127.0F;
|
||||
result[2] = (((rawBits[0] >> 16) & 0xff) - 128) / 127.0F;
|
||||
result[3] = (((rawBits[0] >> 24) & 0xff) - 128) / 127.0F;
|
||||
store_vector4( inst, machine, result );
|
||||
}
|
||||
break;
|
||||
|
|
@ -1227,9 +1227,9 @@ execute_program( GLcontext *ctx,
|
|||
const GLuint *rawBits = (const GLuint *) a;
|
||||
fetch_vector1( ctx, &inst->SrcReg[0], machine, program, a );
|
||||
result[0] = ((rawBits[0] >> 0) & 0xff) / 255.0F;
|
||||
result[0] = ((rawBits[0] >> 8) & 0xff) / 255.0F;
|
||||
result[0] = ((rawBits[0] >> 16) & 0xff) / 255.0F;
|
||||
result[0] = ((rawBits[0] >> 24) & 0xff) / 255.0F;
|
||||
result[1] = ((rawBits[0] >> 8) & 0xff) / 255.0F;
|
||||
result[2] = ((rawBits[0] >> 16) & 0xff) / 255.0F;
|
||||
result[3] = ((rawBits[0] >> 24) & 0xff) / 255.0F;
|
||||
store_vector4( inst, machine, result );
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue