summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2007-02-16 22:09:42 +0100
committerPatrice Mandin <pmandin@caramail.com>2007-02-16 22:09:42 +0100
commit0fccb646e0c83f6bb4c8b453cc2e915e8cee21f1 (patch)
tree6de8f004576b8f9f09711d38286c70b4b38544fe /src
parent66d8e55184ff8ebfdfef174336dbb5560c45e735 (diff)
nouveau: nv20: texture matrix
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv20_state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_state.c b/src/mesa/drivers/dri/nouveau/nv20_state.c
index bcca69daf0..417590d729 100644
--- a/src/mesa/drivers/dri/nouveau/nv20_state.c
+++ b/src/mesa/drivers/dri/nouveau/nv20_state.c
@@ -617,7 +617,10 @@ void (*TexParameter)(GLcontext *ctx, GLenum target,
static void nv20TextureMatrix(GLcontext *ctx, GLuint unit, const GLmatrix *mat)
{
- /* TODO */
+ nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
+ BEGIN_RING_CACHE(NvSub3D, NV20_TCL_PRIMITIVE_3D_TX_MATRIX(unit, 0), 16);
+ /*XXX: This SHOULD work.*/
+ OUT_RING_CACHEp(mat->m, 16);
}
/* Update anything that depends on the window position/size */