r600g: avoid GPU doing constant preload from random address
authorJerome Glisse <jglisse@redhat.com>
Fri, 7 Sep 2012 19:00:20 +0000 (15:00 -0400)
committerJerome Glisse <jglisse@redhat.com>
Tue, 11 Sep 2012 16:57:54 +0000 (12:57 -0400)
commit841c1b5f5423d7994ff0f6773639934d75bd1fca
treece11270fd79ce4bbf7ea60b2e3b869b4af8eb551
parent9ccaa24f8493ebc4e5a606679490e4936ba3c624
r600g: avoid GPU doing constant preload from random address

Previous command stream might have set any of the constant buffer
and the previous address might no longer be valid thus GPU might
preload constant from random invalid address and possibly triggering
lockup.

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