diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2024-03-15 09:06:41 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-22 16:40:08 +0000 |
commit | df638c023d87cb3891b520e9fb863ca2f1cfabbc (patch) | |
tree | 06ab51ddb93a7cee579bdb2a0b77bd6583f1506e | |
parent | f729fe50e55a2268f077c81d9d64a955e988c3d5 (diff) |
wgl: Delete unused context param to swap
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28211>
-rw-r--r-- | src/gallium/frontends/wgl/stw_framebuffer.c | 2 | ||||
-rw-r--r-- | src/gallium/frontends/wgl/stw_st.c | 7 | ||||
-rw-r--r-- | src/gallium/frontends/wgl/stw_st.h | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/gallium/frontends/wgl/stw_framebuffer.c b/src/gallium/frontends/wgl/stw_framebuffer.c index 8ed1e38e363..c811946e08e 100644 --- a/src/gallium/frontends/wgl/stw_framebuffer.c +++ b/src/gallium/frontends/wgl/stw_framebuffer.c @@ -758,7 +758,7 @@ stw_framebuffer_swap_locked(HDC hdc, struct stw_framebuffer *fb) wait_swap_interval(fb, interval); } - return stw_st_swap_framebuffer_locked(hdc, ctx->st, fb->drawable); + return stw_st_swap_framebuffer_locked(hdc, fb->drawable); } BOOL APIENTRY diff --git a/src/gallium/frontends/wgl/stw_st.c b/src/gallium/frontends/wgl/stw_st.c index e8d54ef2904..61a5ed9a255 100644 --- a/src/gallium/frontends/wgl/stw_st.c +++ b/src/gallium/frontends/wgl/stw_st.c @@ -437,7 +437,6 @@ stw_st_flush(struct st_context *st, */ static bool stw_st_framebuffer_present_locked(HDC hdc, - struct st_context *st, struct pipe_frontend_drawable *drawable, enum st_attachment_type statt) { @@ -510,7 +509,7 @@ stw_st_framebuffer_flush_front(struct st_context *st, hDC = GetDC(stwfb->fb->hWnd); - ret = stw_st_framebuffer_present_locked(hDC, st, &stwfb->base, statt); + ret = stw_st_framebuffer_present_locked(hDC, &stwfb->base, statt); ReleaseDC(stwfb->fb->hWnd, hDC); @@ -569,7 +568,7 @@ stw_st_destroy_framebuffer_locked(struct pipe_frontend_drawable *drawable) * Swap the buffers of the given framebuffer. */ bool -stw_st_swap_framebuffer_locked(HDC hdc, struct st_context *st, +stw_st_swap_framebuffer_locked(HDC hdc, struct pipe_frontend_drawable *drawable) { struct stw_st_framebuffer *stwfb = stw_st_framebuffer(drawable); @@ -605,7 +604,7 @@ stw_st_swap_framebuffer_locked(HDC hdc, struct st_context *st, stwfb->texture_mask = mask; front = ST_ATTACHMENT_FRONT_LEFT; - return stw_st_framebuffer_present_locked(hdc, st, &stwfb->base, front); + return stw_st_framebuffer_present_locked(hdc, &stwfb->base, front); } diff --git a/src/gallium/frontends/wgl/stw_st.h b/src/gallium/frontends/wgl/stw_st.h index 8d6ba091a35..683de48a9f8 100644 --- a/src/gallium/frontends/wgl/stw_st.h +++ b/src/gallium/frontends/wgl/stw_st.h @@ -49,7 +49,7 @@ stw_st_flush(struct st_context *st, struct pipe_frontend_drawable *drawable, unsigned flags); bool -stw_st_swap_framebuffer_locked(HDC hdc, struct st_context *st, +stw_st_swap_framebuffer_locked(HDC hdc, struct pipe_frontend_drawable *drawable); struct pipe_resource * |