r600g: fix pointsprite & resource unbinding
authorJerome Glisse <jglisse@redhat.com>
Mon, 27 Sep 2010 18:58:01 +0000 (14:58 -0400)
committerJerome Glisse <jglisse@redhat.com>
Mon, 27 Sep 2010 19:00:17 +0000 (15:00 -0400)
commit1617daaf496573eba70b35a760183b427adeff1b
tree580d296cbb39883d1f16bef5fe305ac63019ee9f
parent99c422ef5ab3924aad66af026945f491d75d226f
r600g: fix pointsprite & resource unbinding

When asking to bind NULL resource assume it's unbinding
so free resource and unreference assoicated buffer.
Also fix pointsprite parameter.

Fix glsl-fs-pointcoord & fp-fragment-position

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state2.c
src/gallium/winsys/r600/drm/evergreen_state.c
src/gallium/winsys/r600/drm/r600_state2.c