zink: add a flag for disabling conditional render during blit

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11466>
This commit is contained in:
Mike Blumenkrantz 2021-06-18 11:55:54 -04:00 committed by Marge Bot
parent 786fa3435c
commit 3f420b3f55
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#include "zink_context.h"
#include "zink_helpers.h"
#include "zink_query.h"
#include "zink_resource.h"
#include "zink_screen.h"
@ -339,6 +340,9 @@ zink_blit_begin(struct zink_context *ctx, enum zink_blit_flags flags)
ctx->di.num_sampler_views[PIPE_SHADER_FRAGMENT],
ctx->sampler_views[PIPE_SHADER_FRAGMENT]);
}
if (flags & ZINK_BLIT_NO_COND_RENDER && ctx->render_condition_active)
zink_stop_conditional_render(ctx);
}
bool

View file

@ -62,6 +62,7 @@ enum zink_blit_flags {
ZINK_BLIT_SAVE_FS = 1 << 1,
ZINK_BLIT_SAVE_FB = 1 << 2,
ZINK_BLIT_SAVE_TEXTURES = 1 << 3,
ZINK_BLIT_NO_COND_RENDER = 1 << 4,
};
struct zink_sampler_state {