gallium: compare the actual register, not all the inputs
otherwise we decrement indexes for all registers
This commit is contained in:
@@ -139,7 +139,7 @@ find_translated_vp(struct st_context *st,
|
|||||||
if (fragInputsRead & (1 << inAttr)) {
|
if (fragInputsRead & (1 << inAttr)) {
|
||||||
stfp->input_to_slot[inAttr] = numIn;
|
stfp->input_to_slot[inAttr] = numIn;
|
||||||
numIn++;
|
numIn++;
|
||||||
if ((fragInputsRead & FRAG_BIT_FOGC)) {
|
if (((1 << inAttr) & FRAG_BIT_FOGC)) {
|
||||||
/* leave placeholders for the
|
/* leave placeholders for the
|
||||||
* extra registers we extract from fog */
|
* extra registers we extract from fog */
|
||||||
if (stfp->Base.UsesFrontFacing) {
|
if (stfp->Base.UsesFrontFacing) {
|
||||||
|
Reference in New Issue
Block a user