From 80dd3c79172227ab8826d7449b65bfdf53ee15f8 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Wed, 22 Dec 2004 00:21:32 +0000 Subject: - 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. --- src/mesa/drivers/dri/savage/savagedma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/savage/savagedma.c') diff --git a/src/mesa/drivers/dri/savage/savagedma.c b/src/mesa/drivers/dri/savage/savagedma.c index eab1386260..86ee763a31 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; -- cgit v1.2.3