From b217d48364f368f541e53006af5dd56f664be24d Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 9 Sep 2013 13:02:08 +0200 Subject: st/dri: do not create a new context for msaa copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit b77316ad7594f st/dri: always copy new DRI front and back buffers to corresponding MSAA buffers introduced creating a pipe_context for every call to validate, which is not required because the callers have a context anyway. Only exception is egl_g3d_create_pbuffer_from_client_buffer, can someone test if it still works with NULL passed as context for validate? From examining the code I believe it does, but I didn't thoroughly test it. Signed-off-by: Maarten Lankhorst Cc: 9.2 Reviewed-by: Marek Olšák --- src/gallium/state_trackers/glx/xlib/xm_st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/glx/xlib') diff --git a/src/gallium/state_trackers/glx/xlib/xm_st.c b/src/gallium/state_trackers/glx/xlib/xm_st.c index 30e69eafc17..fb6999826a9 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_st.c +++ b/src/gallium/state_trackers/glx/xlib/xm_st.c @@ -194,7 +194,8 @@ xmesa_st_framebuffer_validate_textures(struct st_framebuffer_iface *stfbi, * \param out returns resources for each of the attachments */ static boolean -xmesa_st_framebuffer_validate(struct st_framebuffer_iface *stfbi, +xmesa_st_framebuffer_validate(struct st_context_iface *stctx, + struct st_framebuffer_iface *stfbi, const enum st_attachment_type *statts, unsigned count, struct pipe_resource **out) -- cgit v1.2.3