intel/blorp: Add a shader type to make keys more unique
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 21 Oct 2016 18:30:05 +0000 (11:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Nov 2016 18:11:29 +0000 (10:11 -0800)
commit99b436ae5cfa410c6daad89f78acbe5ec88b9426
treee9c9800cf1fd204b82aaefc1936849f522bc44cd
parent1acebeb1910b5fb29195acf132bbb88ebeebfb8b
intel/blorp: Add a shader type to make keys more unique

Depending on how the driver using blorp implements its shader caching,
there is a small chance of shader collisions due to identical keys between
blit and clear programs.  Adding a small shader type at the top of the key
alleviates this problem.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_clear.c
src/intel/blorp/blorp_priv.h