svga: Keep tight control of texture handle ownership.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Dec 2009 12:29:02 +0000 (12:29 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Dec 2009 12:29:02 +0000 (12:29 +0000)
commit16876b8328059446b6fa0951f7848e5d500244ab
treec7df0762277bd5cca7ac8739f58e808bb5438fa7
parent770323e33e62169827454af74e9f90f09997f962
svga: Keep tight control of texture handle ownership.

The texture owns the surface handle. All derivatives need to keep
a reference to texture.

This fixes several assertions failures starting up Jedi Knight 2.

Should cause no change for DRM surface sharing -- reference count still
done as before there.
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/drivers/svga/svga_screen_texture.h