OSDN Git Service

gallium: specify resource_resolve destination via a pipe_surface
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 25 Jul 2012 11:47:58 +0000 (13:47 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 28 Jul 2012 12:58:18 +0000 (14:58 +0200)
commit5d5af7d359e0060fa00b90a8f04900b96f9058b0
treea104989f811f7c0b7712fb6f7e73025bbf31ce0b
parent51e41a0d894109249448ecc6a6bfc09e095acada
gallium: specify resource_resolve destination via a pipe_surface

The format member of pipe_surface may differ from that of the
pipe_resource, which is used to communicate, for instance, whether
sRGB encode should be enabled in the resolve operation or not.

Fixes resolve to sRGB surfaces in mesa/st when GL_FRAMEBUFFER_SRGB
is disabled.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/nv30/nv30_miptree.c
src/gallium/drivers/nv50/nv50_surface.c
src/gallium/drivers/nvc0/nvc0_surface.c
src/gallium/drivers/r300/r300_render.c
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_cb_blit.c