diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-09-09 13:02:08 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-09-11 09:03:44 +0200 |
commit | b217d48364f368f541e53006af5dd56f664be24d (patch) | |
tree | 19cc7c1691d62564311470e8ef1c4f04a2c370cc /src/gallium/include/state_tracker | |
parent | 169f9c030c16d1247a3a762972d8687d89a16750 (diff) | |
download | external_mesa3d-b217d48364f368f541e53006af5dd56f664be24d.zip external_mesa3d-b217d48364f368f541e53006af5dd56f664be24d.tar.gz external_mesa3d-b217d48364f368f541e53006af5dd56f664be24d.tar.bz2 |
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>
Diffstat (limited to 'src/gallium/include/state_tracker')
-rw-r--r-- | src/gallium/include/state_tracker/st_api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h index 3ecd12e..9dcb76f 100644 --- a/src/gallium/include/state_tracker/st_api.h +++ b/src/gallium/include/state_tracker/st_api.h @@ -342,7 +342,8 @@ struct st_framebuffer_iface * the last call might be destroyed. This behavior might change in the * future. */ - boolean (*validate)(struct st_framebuffer_iface *stfbi, + boolean (*validate)(struct st_context_iface *stctx, + struct st_framebuffer_iface *stfbi, const enum st_attachment_type *statts, unsigned count, struct pipe_resource **out); |