Mesa (mesa_7_6_branch): r600: don't setup hardware state if TFP
Alex Deucher
agd5f at kemper.freedesktop.org
Thu Sep 24 14:06:26 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: b1e417413f2da8aad1872fa009949da101156431
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1e417413f2da8aad1872fa009949da101156431
Author: Dave Airlie <airlied at linux.ie>
Date: Wed Sep 9 15:02:16 2009 +1000
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
---
src/mesa/drivers/dri/r600/r600_texstate.c | 4 ++++
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 49b603b..6436a5d 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) {
More information about the mesa-commit
mailing list