diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-11-29 04:09:02 -0500 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2020-12-05 10:52:17 -0500 |
commit | 3bd9db5be3c0e28443098dd0108e01a73c2b83e2 (patch) | |
tree | 535d4497b6739f707089c5ea20c719ebd46c8f39 /src/gallium/drivers/r300/r300_blit.c | |
parent | 40a7f6d0477c06cf7eef0cee253cc3de300236d5 (diff) |
r300,r600,radeonsi: inline struct radeon_cmdbuf to remove dereferences
It's straightforward except that the amdgpu winsys had to be cleaned up
to allow this.
radeon_cmdbuf is inlined and optionally the winsys can save the pointer
to it. radeon_cmdbuf::priv points to the winsys cs structure.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7907>
Diffstat (limited to 'src/gallium/drivers/r300/r300_blit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_blit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 8d3ba1381d5..738bc53ba97 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -281,7 +281,7 @@ static void r300_clear(struct pipe_context* pipe, if (!r300->hyperz_enabled && (r300->screen->caps.is_r500 || debug_get_option_hyperz())) { r300->hyperz_enabled = - r300->rws->cs_request_feature(r300->cs, + r300->rws->cs_request_feature(&r300->cs, RADEON_FID_R300_HYPERZ_ACCESS, TRUE); if (r300->hyperz_enabled) { @@ -319,7 +319,7 @@ static void r300_clear(struct pipe_context* pipe, /* Try to obtain the access to the CMASK if we don't have one. */ if (!r300->cmask_access) { r300->cmask_access = - r300->rws->cs_request_feature(r300->cs, + r300->rws->cs_request_feature(&r300->cs, RADEON_FID_R300_CMASK_ACCESS, TRUE); } @@ -384,7 +384,7 @@ static void r300_clear(struct pipe_context* pipe, r300_get_num_cs_end_dwords(r300); /* Reserve CS space. */ - if (!r300->rws->cs_check_space(r300->cs, dwords, false)) { + if (!r300->rws->cs_check_space(&r300->cs, dwords, false)) { r300_flush(&r300->context, PIPE_FLUSH_ASYNC, NULL); } |