diff --git a/0001-nvc0-Disable-BGRA8-images-on-Fermi.patch b/0001-nvc0-Disable-BGRA8-images-on-Fermi.patch new file mode 100644 index 0000000..5e0270c --- /dev/null +++ b/0001-nvc0-Disable-BGRA8-images-on-Fermi.patch @@ -0,0 +1,50 @@ +From 14a5478a27ccd58855d49d227b0762287fd2cbc2 Mon Sep 17 00:00:00 2001 +From: Lyude +Date: Fri, 2 Jun 2017 20:27:07 -0400 +Subject: [PATCH] nvc0: Disable BGRA8 images on Fermi + +For unknown reasons, using BGRA8 images on Fermi results in breaking +reads from PBOs, such that they always return 0x0. Discovered this +through a glamor bug, and confirmed it does indeed break a good number +of piglit tests such as spec/arb_pixel_buffer_object/pbo-read-argb8888 + +Until we have a proper fix, just disable this functionality on Fermi. + +Signed-off-by: Lyude +--- + src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 19 ++++++++++++++----- + 1 file changed, 14 insertions(+), 5 deletions(-) + +diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +index c636926..f6c5c72 100644 +--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c ++++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +@@ -87,11 +87,20 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen, + bindings &= ~(PIPE_BIND_LINEAR | + PIPE_BIND_SHARED); + +- if (bindings & PIPE_BIND_SHADER_IMAGE && sample_count > 1 && +- nouveau_screen(pscreen)->class_3d >= GM107_3D_CLASS) { +- /* MS images are currently unsupported on Maxwell because they have to +- * be handled explicitly. */ +- return false; ++ if (bindings & PIPE_BIND_SHADER_IMAGE) { ++ if (sample_count > 1 && ++ nouveau_screen(pscreen)->class_3d >= GM107_3D_CLASS) { ++ /* MS images are currently unsupported on Maxwell because they have to ++ * be handled explicitly. */ ++ return false; ++ } ++ ++ if (format == PIPE_FORMAT_B8G8R8A8_UNORM && ++ nouveau_screen(pscreen)->class_3d < NVE4_3D_CLASS) { ++ /* This should work on Fermi, but for currently unknown reasons it ++ * does not and results in breaking reads from pbos. */ ++ return false; ++ } + } + + return (( nvc0_format_table[format].usage | +-- +2.9.4 + diff --git a/mesa.spec b/mesa.spec index ea9fbdd..e9b2a58 100644 --- a/mesa.spec +++ b/mesa.spec @@ -60,7 +60,7 @@ Name: mesa Summary: Mesa graphics libraries Version: 17.0.5 -Release: 2%{?rctag:.%{rctag}}%{?dist} +Release: 3%{?rctag:.%{rctag}}%{?dist} License: MIT URL: http://www.mesa3d.org @@ -91,6 +91,8 @@ Patch14: 0001-Fix-linkage-against-shared-glapi.patch Patch15: 0001-glapi-Link-with-glapi-when-built-shared.patch # submitted upstream Patch16: 0001-glxglvnddispatch-Add-missing-dispatch-for-GetDriverC.patch +# fix XWayland on fermi with nouveau +Patch17: 0001-nvc0-Disable-BGRA8-images-on-Fermi.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -692,6 +694,9 @@ popd %endif %changelog +* Tue Jun 06 2017 Lyude Paul - 17.0.5-3 +- add fix for rhbz#1411447 + * Wed May 03 2017 Dave Airlie - 17.0.5-2 - enable radv