mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
r500: you can have a single texcoord
This commit is contained in:
parent
0910d9d4d6
commit
126673261d
1 changed files with 5 additions and 2 deletions
|
|
@ -1716,9 +1716,12 @@ static void r500SetupRSUnit(GLcontext * ctx)
|
|||
else
|
||||
count = VB->AttribPtr[_TNL_ATTRIB_TEX(i)]->size;
|
||||
|
||||
/* always have a least 2 tex coords */
|
||||
/* always have on texcoord */
|
||||
swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_S_SHIFT;
|
||||
swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_T_SHIFT;
|
||||
if (count >= 2)
|
||||
swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_T_SHIFT;
|
||||
else
|
||||
swiz |= R500_RS_IP_PTR_K0 << R500_RS_IP_TEX_PTR_T_SHIFT;
|
||||
|
||||
if (count >= 3)
|
||||
swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_R_SHIFT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue