From f93feb7aedc194f3fa04fa2216b2a215548b2e4e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 4 Dec 2005 00:37:35 +0000 Subject: Fix r300 rectangular texture upload and swtcl coordinate fixing same as radeon sw tcl --- src/mesa/drivers/dri/r300/r300_context.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/r300/r300_context.h') diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 5d6ebe27aa..695609d33c 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -177,10 +177,11 @@ struct r300_tex_obj { /* Six, for the cube faces */ + GLuint pitch; /* this isn't sent to hardware just used in calculations */ /* hardware register values */ /* Note that R200 has 8 registers per texture and R300 only 7 */ GLuint filter; - GLuint pitch; /* one of the unknown registers.. unknown 1 ?*/ + GLuint pitch_reg; GLuint size; /* npot only */ GLuint format; GLuint offset; /* Image location in the card's address space. @@ -481,6 +482,7 @@ struct r300_hw_state { struct r300_state_atom unknown1; struct r300_state_atom size; struct r300_state_atom format; + struct r300_state_atom pitch; struct r300_state_atom offset; struct r300_state_atom unknown4; struct r300_state_atom border_color; -- cgit v1.2.3