[Mesa-dev] [PATCH 4/6] nouveau_vieux: don't modify immutable textures
nobled
nobled at dreamwidth.org
Wed May 2 10:05:30 PDT 2012
---
src/mesa/drivers/dri/nouveau/nouveau_texture.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_texture.c
b/src/mesa/drivers/dri/nouveau/nouveau_texture.c
index a2e96aa..8954666 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c
@@ -723,6 +723,13 @@ nouveau_set_texbuffer(__DRIcontext *dri_ctx,
struct nouveau_surface *s;
_mesa_lock_texture(ctx, t);
+
+ if (t->Immutable) {
+ driWarnImmutableTexture(ctx, t->Name);
+ _mesa_unlock_texture(ctx, t);
+ return;
+ }
+
ti = _mesa_get_tex_image(ctx, t, target, 0);
nti = to_nouveau_teximage(ti);
s = &to_nouveau_teximage(ti)->surface;
--
1.7.4.1
More information about the mesa-dev
mailing list