i965: Validate textures before altering driver state
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 28 Jan 2016 21:07:55 +0000 (23:07 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 12 Feb 2016 07:13:07 +0000 (09:13 +0200)
commit779429d063627df840c8f694a23a19e13a159146
tree341ec1bffcf84f6151e0eb6bcb080878616d4f61
parent76f6f59c6e26b1165d9885463b244dc4c88b61ef
i965: Validate textures before altering driver state

Validation may kick off copies and subsequently color resolves.
Color resolves (and the copies themselves if ending up in meta path)
will overwrite the internal driver state but are not prepared to
restore it. Instead of adding that capability the validation can be
simply performed before the state is updated.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_draw.c