Mesa (master): radeonsi: replace ctx->screen with sscreen in si_flush_gfx_cs
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 23 09:23:56 UTC 2020
Module: Mesa
Branch: master
Commit: f8e8701cf1b6a9eee3ec401c569ac88d0405f10e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8e8701cf1b6a9eee3ec401c569ac88d0405f10e
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Jun 16 14:39:04 2020 -0400
radeonsi: replace ctx->screen with sscreen in si_flush_gfx_cs
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5506>
---
src/gallium/drivers/radeonsi/si_gfx_cs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_gfx_cs.c b/src/gallium/drivers/radeonsi/si_gfx_cs.c
index 5581c46ebbd..347230012aa 100644
--- a/src/gallium/drivers/radeonsi/si_gfx_cs.c
+++ b/src/gallium/drivers/radeonsi/si_gfx_cs.c
@@ -92,7 +92,7 @@ void si_flush_gfx_cs(struct si_context *ctx, unsigned flags, struct pipe_fence_h
if (sscreen->info.is_amdgpu && sscreen->info.drm_minor >= 39)
flags |= RADEON_FLUSH_START_NEXT_GFX_IB_NOW;
- if (!ctx->screen->info.kernel_flushes_tc_l2_after_ib) {
+ if (!sscreen->info.kernel_flushes_tc_l2_after_ib) {
wait_flags |= wait_ps_cs | SI_CONTEXT_INV_L2;
} else if (ctx->chip_class == GFX6) {
/* The kernel flushes L2 before shaders are finished. */
@@ -108,7 +108,7 @@ void si_flush_gfx_cs(struct si_context *ctx, unsigned flags, struct pipe_fence_h
if (ctx->b.get_device_reset_status(&ctx->b) != PIPE_NO_RESET)
return;
- if (ctx->screen->debug_flags & DBG(CHECK_VM))
+ if (sscreen->debug_flags & DBG(CHECK_VM))
flags &= ~PIPE_FLUSH_ASYNC;
ctx->gfx_flush_in_progress = true;
@@ -169,7 +169,7 @@ void si_flush_gfx_cs(struct si_context *ctx, unsigned flags, struct pipe_fence_h
* idle when we leave the IB, otherwise another process
* might overwrite it while our shaders are busy.
*/
- if (ctx->screen->use_ngg_streamout)
+ if (sscreen->use_ngg_streamout)
wait_flags |= SI_CONTEXT_PS_PARTIAL_FLUSH;
}
}
@@ -239,7 +239,7 @@ void si_flush_gfx_cs(struct si_context *ctx, unsigned flags, struct pipe_fence_h
}
/* Check VM faults if needed. */
- if (ctx->screen->debug_flags & DBG(CHECK_VM)) {
+ if (sscreen->debug_flags & DBG(CHECK_VM)) {
/* Use conservative timeout 800ms, after which we won't wait any
* longer and assume the GPU is hung.
*/
More information about the mesa-commit
mailing list