mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-19 14:20:37 +01:00
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:
parent
38dd2e6e41
commit
7e07f7f900
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue