i965/blorp: Skip uploading state/options not needed for clears
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 11 Apr 2016 21:18:45 +0000 (00:18 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 21 Apr 2016 07:20:03 +0000 (10:20 +0300)
commitaa322f8ae5be1bbb32ecdacb0984d79c242f4a95
treea0d1d62d41d6d8f8c31880ff4eb98b97eae6db8d
parent87d333f2fe9e0be458eeff21ea70087ba524e9fa
i965/blorp: Skip uploading state/options not needed for clears

In case there is no source it means the program does a simple
clear or a resolve. In such case there is no need to program
sampling state or enable pixel kill in fragment shader.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/i965/gen7_blorp.cpp
src/mesa/drivers/dri/i965/gen8_blorp.cpp