diff options
author | Dave Airlie <[email protected]> | 2009-09-09 15:02:16 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-09-09 15:02:16 +1000 |
commit | 5aaa45de4c367dd6ec5daa6f4a54504b0aff1aca (patch) | |
tree | 0d83b39ded09bed3b9382e0f4f176836ae4ba346 /src/mesa | |
parent | 8947cf67288ab9a8bf87e9029d3fc1d4073cc88b (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.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 fff6e743860..ff4ef1ee74c 100644 --- a/src/mesa/drivers/dri/r600/r600_texstate.c +++ b/src/mesa/drivers/dri/r600/r600_texstate.c @@ -608,6 +608,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) { |