llvmpipe: add multisample bit to fragment shader key.

The fragment shader needs to be regenerated when multisample changes.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
This commit is contained in:
Dave Airlie 2020-03-11 08:11:31 +10:00 committed by Marge Bot
parent f5463576b9
commit 67ec1760ee
2 changed files with 5 additions and 0 deletions

View file

@ -2760,6 +2760,9 @@ dump_fs_variant_key(struct lp_fragment_shader_variant_key *key)
if (key->flatshade) {
debug_printf("flatshade = 1\n");
}
if (key->multisample) {
debug_printf("multisample = 1\n");
}
for (i = 0; i < key->nr_cbufs; ++i) {
debug_printf("cbuf_format[%u] = %s\n", i, util_format_name(key->cbuf_format[i]));
}
@ -3369,6 +3372,7 @@ make_variant_key(struct llvmpipe_context *lp,
/* alpha.ref_value is passed in jit_context */
key->flatshade = lp->rasterizer->flatshade;
key->multisample = lp->rasterizer->multisample;
if (lp->active_occlusion_queries && !lp->queries_disabled) {
key->occlusion_count = TRUE;
}

View file

@ -83,6 +83,7 @@ struct lp_fragment_shader_variant_key
unsigned occlusion_count:1;
unsigned resource_1d:1;
unsigned depth_clamp:1;
unsigned multisample:1;
enum pipe_format zsbuf_format;
enum pipe_format cbuf_format[PIPE_MAX_COLOR_BUFS];