st/mesa: decouple shaders from contexts if they are shareable

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Marek Olšák
2015-09-27 23:36:59 +02:00
parent d74e7b6fb9
commit f4e938e9ae
6 changed files with 21 additions and 13 deletions

View File

@@ -914,7 +914,7 @@ get_color_fp_variant(struct st_context *st)
memset(&key, 0, sizeof(key));
key.st = st;
key.st = st->has_shareable_shaders ? NULL : st;
key.drawpixels = 1;
key.scaleAndBias = (ctx->Pixel.RedBias != 0.0 ||
ctx->Pixel.RedScale != 1.0 ||