st/dri: do not create a new context for msaa copy
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 9 Sep 2013 11:02:08 +0000 (13:02 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 11 Sep 2013 07:03:44 +0000 (09:03 +0200)
commitb217d48364f368f541e53006af5dd56f664be24d
tree19cc7c1691d62564311470e8ef1c4f04a2c370cc
parent169f9c030c16d1247a3a762972d8687d89a16750
st/dri: do not create a new context for msaa copy

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 <maarten.lankhorst@canonical.com>
Cc: 9.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
12 files changed:
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_drawable.h
src/gallium/state_trackers/dri/drm/dri2.c
src/gallium/state_trackers/dri/sw/drisw.c
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/egl/common/egl_g3d_st.c
src/gallium/state_trackers/glx/xlib/xm_st.c
src/gallium/state_trackers/osmesa/osmesa.c
src/gallium/state_trackers/vega/vg_manager.c
src/gallium/state_trackers/wgl/stw_st.c
src/mesa/state_tracker/st_manager.c