zink: delete more sw conditional render handling

I forgot to delete this when I deleted the draw path handling

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18664>
This commit is contained in:
Mike Blumenkrantz
2022-09-01 10:22:51 -04:00
committed by Marge Bot
parent fc52f82c09
commit b889b48466
4 changed files with 0 additions and 24 deletions
-4
View File
@@ -284,10 +284,6 @@ zink_blit(struct pipe_context *pctx,
const struct util_format_description *src_desc = util_format_description(info->src.format);
const struct util_format_description *dst_desc = util_format_description(info->dst.format);
if (info->render_condition_enable &&
unlikely(!zink_screen(pctx->screen)->info.have_EXT_conditional_rendering && !zink_check_conditional_render(ctx)))
return;
struct zink_resource *src = zink_resource(info->src.resource);
struct zink_resource *dst = zink_resource(info->dst.resource);
bool needs_present_readback = false;
-3
View File
@@ -149,9 +149,6 @@ zink_clear(struct pipe_context *pctx,
struct zink_batch *batch = &ctx->batch;
bool needs_rp = false;
if (unlikely(!zink_screen(pctx->screen)->info.have_EXT_conditional_rendering && !zink_check_conditional_render(ctx)))
return;
if (scissor_state) {
struct u_rect scissor = {scissor_state->minx, scissor_state->maxx, scissor_state->miny, scissor_state->maxy};
needs_rp = !zink_blit_region_fills(scissor, fb->width, fb->height);
-14
View File
@@ -1164,20 +1164,6 @@ zink_stop_conditional_render(struct zink_context *ctx)
ctx->render_condition.active = false;
}
bool
zink_check_conditional_render(struct zink_context *ctx)
{
if (!ctx->render_condition_active)
return true;
assert(ctx->render_condition.query);
union pipe_query_result result;
zink_get_query_result(&ctx->base, (struct pipe_query*)ctx->render_condition.query, true, &result);
return is_bool_query(ctx->render_condition.query) ?
ctx->render_condition.inverted != result.b :
ctx->render_condition.inverted != !!result.u64;
}
static void
zink_render_condition(struct pipe_context *pctx,
struct pipe_query *pquery,
-3
View File
@@ -50,9 +50,6 @@ zink_start_conditional_render(struct zink_context *ctx);
void
zink_stop_conditional_render(struct zink_context *ctx);
bool
zink_check_conditional_render(struct zink_context *ctx);
void
zink_context_destroy_query_pools(struct zink_context *ctx);
uint64_t