mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
radeonsi: disable primitive discard if tmz is in use
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6049>
This commit is contained in:
parent
8e2768bbfb
commit
133895574c
1 changed files with 11 additions and 1 deletions
|
|
@ -387,7 +387,17 @@ void si_set_tracked_regs_to_clear_state(struct si_context *ctx)
|
|||
|
||||
void si_begin_new_gfx_cs(struct si_context *ctx, bool first_cs)
|
||||
{
|
||||
bool is_secure = ctx->ws->cs_is_secure(ctx->gfx_cs);
|
||||
bool is_secure = false;
|
||||
|
||||
if (unlikely(ctx->ws->ws_uses_secure_bo(ctx->ws))) {
|
||||
/* Disable features that don't work with TMZ:
|
||||
* - primitive discard
|
||||
*/
|
||||
ctx->prim_discard_vertex_count_threshold = UINT_MAX;
|
||||
|
||||
is_secure = ctx->ws->cs_is_secure(ctx->gfx_cs);
|
||||
}
|
||||
|
||||
if (ctx->is_debug)
|
||||
si_begin_gfx_cs_debug(ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue