u_blitter: fix fs used when no color emitted

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11280>
This commit is contained in:
Dave Airlie 2020-12-24 12:58:48 +10:00 committed by Marge Bot
parent 38dd2e6e41
commit 7e07f7f900

View file

@ -1502,8 +1502,6 @@ static void util_blitter_clear_custom(struct blitter_context *blitter,
sr.ref_value[0] = stencil & 0xff;
pipe->set_stencil_ref(pipe, sr);
bind_fs_write_all_cbufs(ctx);
union blitter_attrib attrib;
memcpy(attrib.color, color->ui, sizeof(color->ui));
@ -1511,6 +1509,11 @@ static void util_blitter_clear_custom(struct blitter_context *blitter,
enum blitter_attrib_type type = pass_generic ? UTIL_BLITTER_ATTRIB_COLOR :
UTIL_BLITTER_ATTRIB_NONE;
if (pass_generic)
bind_fs_write_all_cbufs(ctx);
else
bind_fs_empty(ctx);
if (num_layers > 1 && ctx->has_layered) {
blitter_get_vs_func get_vs = get_vs_layered;