summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-09-09 15:02:16 +1000
committerAlex Deucher <[email protected]>2009-09-24 09:57:45 -0400
commitb1e417413f2da8aad1872fa009949da101156431 (patch)
tree7bb6765f858e8ad3b869e65ee0e29de36581d997 /src/mesa
parentcbab3d7f2a77f187fb688593c17396d4967c75b5 (diff)
r600: don't setup hardware state if TFP
if we have a BO here it means TFP and we should have set it up already. tested by b0le on #radeon
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r600/r600_texstate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r600_texstate.c b/src/mesa/drivers/dri/r600/r600_texstate.c
index 49b603b65e1..6436a5d7e9b 100644
--- a/src/mesa/drivers/dri/r600/r600_texstate.c
+++ b/src/mesa/drivers/dri/r600/r600_texstate.c
@@ -565,6 +565,10 @@ static void setup_hardware_state(context_t *rmesa, struct gl_texture_object *tex
int firstlevel = t->mt ? t->mt->firstLevel : 0;
GLuint uTexelPitch, row_align;
+ if ( t->bo ) {
+ return GL_TRUE;
+ }
+
firstImage = t->base.Image[0][firstlevel];
if (!t->image_override) {