mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
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:
parent
786fa3435c
commit
3f420b3f55
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue