diff options
Diffstat (limited to 'debian/patches/17-i965_blorp_Add_support_for_blits_between_SRGB_and_linear_formats.patch')
-rw-r--r-- | debian/patches/17-i965_blorp_Add_support_for_blits_between_SRGB_and_linear_formats.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/17-i965_blorp_Add_support_for_blits_between_SRGB_and_linear_formats.patch b/debian/patches/17-i965_blorp_Add_support_for_blits_between_SRGB_and_linear_formats.patch new file mode 100644 index 0000000000..6de4a101c8 --- /dev/null +++ b/debian/patches/17-i965_blorp_Add_support_for_blits_between_SRGB_and_linear_formats.patch @@ -0,0 +1,35 @@ +To: <mesa-dev@lists.freedesktop.org> +Date: Tue, 11 Sep 2012 16:24:04 -0700 +Subject: [Mesa-dev] [PATCH 1/2] mesa: Ignore SRGB when determining + compatible resolve formats. + +MSAA resolves and other blit-like operations ignore SRGB state anyway, +so we should be able to safely allow resolves between compatible +SRGB/linear formats like SRGBA8 and RGBA8888. + +Fixes completely black rendering when using multisampling in L4D2. + +NOTE: This is a candidate for the 9.0 branch. + +Cc: Paul Berry <stereotype441@gmail.com> +Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> +--- + src/mesa/main/fbobject.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c +index abc9d83..6d9bf35 100644 +--- a/src/mesa/main/fbobject.c ++++ b/src/mesa/main/fbobject.c +@@ -2802,7 +2802,8 @@ compatible_resolve_formats(const struct gl_renderbuffer *colorReadRb, + { + /* The simple case where we know the backing formats are the same. + */ +- if (colorReadRb->Format == colorDrawRb->Format) { ++ if (_mesa_get_srgb_format_linear(colorReadRb->Format) == ++ _mesa_get_srgb_format_linear(colorDrawRb->Format)) { + return GL_TRUE; + } + +-- +1.7.11.4 |