summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagedma.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2004-12-22 00:21:32 +0000
committerFelix Kuehling <[email protected]>2004-12-22 00:21:32 +0000
commit80dd3c79172227ab8826d7449b65bfdf53ee15f8 (patch)
tree32b077abb02ee8bc5c259a93106ebaabda6c26cc /src/mesa/drivers/dri/savage/savagedma.c
parent8bdaa927ebca0a23a3bdeed3f4bb11b0f1600684 (diff)
- Fake projective textures on a single texture unit. A fallback is only
needed if a second texture unit is enabled. - Also worked around an application bug in Chromium B.S.U.: it sends 3D texture coordinates while only a 2D texture is enabled. This used to trigger a PTEX fallback. Now the 3rd coordinate is just ignored. - Fixed the _savage_texnorm_stage to never normalize homogenous texture coordinates.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagedma.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagedma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/savage/savagedma.c b/src/mesa/drivers/dri/savage/savagedma.c
index eab13862607..86ee763a31f 100644
--- a/src/mesa/drivers/dri/savage/savagedma.c
+++ b/src/mesa/drivers/dri/savage/savagedma.c
@@ -312,8 +312,8 @@ static drmBuf vertex_buffer = {
};
void savageFakeVertices (savageContextPtr imesa, drmBufPtr buffer) {
- GLuint vertexStride = imesa->vertex_size; /* stride in dwords */
- GLuint vertexSize = imesa->vertex_size; /* the real vertex size in dwords */
+ GLuint vertexStride = imesa->HwVertexSize; /* stride in dwords */
+ GLuint vertexSize = imesa->HwVertexSize; /* the real vertex size in dwords */
GLuint nVertices = buffer->used / (vertexStride*4);
u_int32_t *data = (u_int32_t*)buffer->address;
u_int32_t vertexFormat = imesa->DrawPrimitiveCmd & SAVAGE_HW_SKIPFLAGS;