Compare commits

...

463 Commits
f19 ... master

Author SHA1 Message Date
Pete Walter 6ce6c8d5e1 Update to 20.0.2 2020-03-19 13:29:41 +00:00
Pete Walter 691cc08a95 Update to 20.0.1 2020-03-06 09:34:14 +00:00
Kalev Lember bd392f431c Fix the build with llvm 10
Make sure the build uses gnu++14 as llvm 10 headers require that.

https://bugzilla.redhat.com/show_bug.cgi?id=1803351
2020-02-26 17:12:18 +01:00
Pete Walter a02bf61649 Update to 20.0.0 2020-02-20 10:37:35 +00:00
Pete Walter a3e188c7f1 Update to 20.0.0~rc3 2020-02-14 20:43:28 +00:00
Pete Walter def7df7fd0 Update to 20.0.0~rc2 2020-02-08 20:15:27 +00:00
Pete Walter 17714718d4 Update files list for arm drivers 2020-02-02 20:52:23 +00:00
Pete Walter 244b45ba4e Update to 20.0.0~rc1 2020-02-01 22:42:02 +00:00
Pete Walter cb726e7752 Update to 19.3.3 2020-01-29 07:40:49 +00:00
Tom Stellard 2208aa87d7 Link against libclang-cpp.so
https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
2020-01-23 19:12:32 +00:00
Tom Stellard dfa8e8664d Build with -fcommon until upstream fixes omx build with gcc10 2020-01-23 19:10:49 +00:00
Pete Walter 88f2b16b7a Update to 19.3.2 2020-01-10 10:33:15 +00:00
Pete Walter 0860841e06 Update to 19.3.1 2019-12-18 22:00:33 +00:00
Pete Walter 78c38a46db Update to 19.3.0 2019-12-16 03:21:30 +00:00
Pete Walter c91c204f63 Update to 19.3.0~rc6 2019-12-05 08:14:47 +00:00
Pete Walter e252ca97bc Update to 19.3.0~rc5 2019-11-28 11:11:47 +00:00
Pete Walter e3793d2b0f Update to 19.3.0~rc4 2019-11-24 21:22:55 +00:00
Pete Walter 4d507c6840 Update to 19.3.0~rc3 2019-11-14 09:33:09 +00:00
Pete Walter c664beb5a6 Fix the build on arm
https://gitlab.freedesktop.org/mesa/mesa/issues/2042
2019-11-12 13:31:24 +00:00
Pete Walter feef06f322 Update to 19.3.0~rc2 2019-11-08 10:15:52 +00:00
Pete Walter d27097db94 Update to 19.2.3 2019-11-07 17:45:06 +00:00
Peter Robinson 08c3236612 adjust mesa-khr-devel requires now provided by libglvnd 2019-10-25 13:59:09 +01:00
Peter Robinson 3474d0a62b Fix up and remove bits now in libglvnd 2019-10-25 12:06:17 +01:00
Peter Robinson 6e80d6369c rebuild against libglvnd 1.2 2019-10-25 08:36:00 +01:00
Pete Walter af4fc7304b Update files lists 2019-10-25 02:54:48 +01:00
Pete Walter 155b1d1b2e Update to 19.2.2 2019-10-25 02:31:46 +01:00
Peter Robinson 7b0cc19117 19.2.1 2019-10-10 09:50:49 +01:00
Gwyn Ciesla bb914bd1b9 Rebuild for new freeglut. 2019-10-04 07:41:40 -05:00
Pete Walter 9c21301809 Update to 19.2.0 2019-09-25 19:42:41 +01:00
Pete Walter 296e0ae82c Update to 19.2.0~rc4 2019-09-18 20:18:56 +01:00
Adam Jackson 5d0d2710aa Build iris too 2019-09-17 15:38:37 -04:00
Pete Walter 8acfe9ee28 Update to 19.2.0~rc3 2019-09-12 15:17:30 +01:00
Pete Walter c274ae1f8f Update to 19.2.0~rc2 2019-09-05 09:37:48 +01:00
Adam Jackson 6d6825429d BuildRequire vulkan-headers not vulkan-devel to ease llvm updates 2019-08-27 13:43:21 -04:00
Peter Robinson c5cbb9a96f Bring back egl.pc for now 2019-08-22 18:35:43 +01:00
Peter Robinson 9bab7bdf2e add mxsfb-drm_dri and stm_dri drivers for arm platforms 2019-08-21 10:40:27 +01:00
Peter Robinson 845287db52 pkgconfig/egl.pc no longer shipped 2019-08-21 09:29:05 +01:00
Peter Robinson 79749b404c 19.2.0~rc1 2019-08-21 08:37:53 +01:00
Pete Walter c3a6a26144 Update to 19.1.4 2019-08-08 12:26:19 +01:00
Pete Walter c7b1d0e96c Update to 19.1.3 2019-07-24 11:22:46 +01:00
Pete Walter 05bea87ce8 Update to 19.1.2 2019-07-09 11:42:01 +01:00
Pete Walter 788f3c1014 Update to 19.1.1 2019-06-26 09:02:31 +01:00
Peter Robinson 51d65ab670 Enable v3d driver 2019-06-24 18:41:44 +01:00
Igor Gnatenko 7c81ae5911
Update to 19.1.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-06-12 09:46:05 +02:00
Pete Walter 895029979f Update to 19.1.0~rc5 2019-06-07 09:18:38 +01:00
Pete Walter cff677c5dd Update to 19.1.0~rc4 2019-05-30 08:32:37 +01:00
Dave Airlie 552cdae9e6 Update to 19.1.0-rc3 2019-05-22 10:47:43 +10:00
Adam Jackson f5d1a45049 Delete unused patch 2019-05-21 14:09:00 -04:00
Dave Airlie 6b02ba7b6a Update to 19.1.0-rc2 2019-05-15 07:51:15 +10:00
Dave Airlie 1260598b62 Bring back glesv2.pc for now 2019-05-15 06:55:07 +10:00
Peter Robinson f2ad1e1493 Enable panfrost 2019-05-11 20:53:40 +01:00
Adam Jackson fbee2edeaf Enable lima 2019-05-09 12:42:44 -04:00
Adam Jackson e9969b5fec Add some more stuff to .gitignore 2019-05-09 11:15:31 -04:00
Dave Airlie 10c91826d2 add missing exynos driver 2019-05-08 13:55:24 +10:00
Dave Airlie 76b6b251a7 fix missing kmsro 2019-05-08 12:40:35 +10:00
Dave Airlie 5c279f473b add missing kmsro drivers 2019-05-08 11:36:56 +10:00
Dave Airlie e83e90968f Update to 19.1.0-rc1
drop glesv2.pc since we don't install at lib files and meson build dropped it.
2019-05-08 10:58:16 +10:00
Pete Walter 01a131cfa9 Update to 19.0.3 2019-04-25 10:56:35 +01:00
Adam Williamson 0bea054b30 Rebuild with Meson fix for #1699099 2019-04-16 12:03:21 -07:00
Pete Walter ec6c645d39 Remove unneeded chrpath build dep 2019-04-15 14:31:16 +01:00
Igor Gnatenko 9786914605
Remove unneeded sources
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-04-14 11:14:27 +02:00
Adam Jackson fd591dd76a Drop the mpeg1/2 sanitize hack
Switch to upstream tarball since we no longer need to do the above
2019-04-11 14:35:02 -04:00
Igor Gnatenko 878fbd1530
Update to 19.0.2
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-04-11 08:56:04 +02:00
Adam Jackson 6fb4a533ef Nuke rpath from installed DRI drivers 2019-04-04 15:15:40 -04:00
Igor Gnatenko 2ad0c6e76f
Update to 19.0.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-03-27 22:04:26 +01:00
Igor Gnatenko a8742f03dd
Rebuild with -Db_ndebug=true
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-03-25 17:09:05 +01:00
Peter Robinson 3cee7e41af 19.0.0 2019-03-13 23:05:34 +00:00
Pete Walter 70c61a8218 Update to 19.0.0~rc7 2019-03-07 09:56:49 +00:00
Pete Walter efe4f93dbb Update to 19.0.0~rc6 2019-02-27 01:35:07 +00:00
Peter Robinson 1e37af6af6 19.0.0~rc5 2019-02-20 13:05:27 +00:00
Igor Gnatenko 2835d9ff3b
Update EGL patch
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-02-14 17:22:57 +01:00
Igor Gnatenko 64d6a36ff8
relax dependency of xcb-randr
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-02-14 11:18:33 +01:00
Igor Gnatenko 9dcda4b1fa
Update to 19.0.0~rc4
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-02-14 11:17:07 +01:00
Igor Gnatenko bfa55eb65c
Fix radv vulkan
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-02-12 19:14:28 +01:00
Pete Walter a04754fe8e Add back accidentally lost patch to disable rgb10 configs by default (#1650929)
This was dropped in commit b708cfc.
2019-02-08 12:09:20 +00:00
Peter Robinson f346245e43 update 19.0.0~rc2 2019-02-06 00:21:39 +00:00
Peter Robinson 0ab246e4d2 19.0.0~rc2 2019-02-06 00:19:48 +00:00
Peter Robinson c57bc5b9e8 add kmsro build option, add work around for missing files in 'make dist' (fixed upstream) 2019-01-31 15:40:55 +00:00
Igor Gnatenko 7410444879
Switch imx to kmsro
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-31 06:47:46 +01:00
Igor Gnatenko a3f576ae07
Update to 19.0.0~rc1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-31 02:27:25 +01:00
Adam Jackson 0794d42c87 Update to 18.3.2 2019-01-17 10:35:43 -05:00
Igor Gnatenko 14fb58e0bd
Enable annotated build
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-19 11:50:57 +01:00
Igor Gnatenko b708cfc9f3
Switch to meson buildsystem
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-19 09:41:09 +01:00
Igor Gnatenko d07e7ed999
commit spec changes
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-18 14:59:44 +01:00
Igor Gnatenko 9b0b893a3c
Update to 18.3.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-18 14:58:00 +01:00
Igor Gnatenko 2eeaa037c1
Update to 18.3.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-07 17:48:16 +01:00
Igor Gnatenko 5f47246ad6
Remove unused patches
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-07 17:48:16 +01:00
Igor Gnatenko b133108f50
Backport patch to fix totem
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-04 12:17:16 +01:00
Peter Robinson fa32bd11e2 18.3.0 rc5 2018-12-04 02:58:24 +00:00
Igor Gnatenko 8c69d04266
Update to 18.3.0~rc4
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-11-27 14:33:56 +01:00
Adam Jackson 3e58ffc41c Add mesa-khr-devel subpackage to hold <KHR/khrplatform.h>, and make
mesa-lib{GL,GLES,EGL}-devel Require it.
2018-11-15 12:54:18 -05:00
Adam Jackson 652f89b81e Update to 18.3.0 RC2
Re-enable 10bpc fbconfigs, clutter apps seem to work now
Drop now-unnecessary big-endian compilation fix
2018-11-14 12:07:44 -05:00
Igor Gnatenko dd7e950818
Rebuild without workaround
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-11-06 17:05:23 +01:00
Dave Airlie fcab6854c8 workaround bug with gcc 8.2.1-4 2018-11-06 09:26:10 +10:00
Adam Jackson 1cfc765493 Update to 18.2.4 2018-11-01 11:28:38 -04:00
Igor Gnatenko 2c8c0e5810
Update to 18.2.3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-10-31 11:50:48 +01:00
Peter Robinson 197c2fd747 18.2.2 2018-10-05 15:59:26 +01:00
Peter Robinson 22363c157b 18.2.1 2018-09-21 18:22:05 +01:00
Adam Williamson 0e8e5c44f3 Fix "HW cursor for format" error message flood with swrast 2018-09-19 12:28:26 -07:00
Peter Robinson f41482932d 18.2.0 2018-09-08 12:00:17 +01:00
Hans de Goede 1176e8c491 Update to 18.2.0~rc5 2018-09-02 18:44:27 +02:00
Igor Gnatenko 9c9ed483b3
Re-enable RadeonSI on ARM
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-22 09:08:50 +02:00
Peter Robinson 8ce34a59a7 18.2.0~rc3 2018-08-21 09:52:29 +01:00
Igor Gnatenko b13b769fca
correct files
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-19 19:51:09 +02:00
Igor Gnatenko 7e16421963
no radeon vulkan driver on arm
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-19 18:13:00 +02:00
Igor Gnatenko ee9fab44b6
BR: xrandr
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-11 21:33:03 +02:00
Igor Gnatenko 9d940ed69e
Update to 18.2.0~rc2
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-11 21:24:22 +02:00
Peter Robinson 2457fa3358 18.1.5 2018-07-30 21:53:16 +01:00
Dave Airlie cc063efb30 bump glvnd requires 2018-07-24 09:08:12 +10:00
Dave Airlie 2b73204e9d fix fallback path for glvnd 2018-07-24 09:04:55 +10:00
Peter Robinson 9f1ef7b836 18.1.4 2018-07-17 09:57:37 +01:00
Fedora Release Engineering 776f0ebed6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 10:09:04 +00:00
Adam Jackson 25b4e647d4 Drop texture float patch 2018-07-06 12:08:07 -04:00
Igor Gnatenko 92972ffe7d
Use simpler %ldconfig macro
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-01 12:22:53 +01:00
Peter Robinson 37e222b99d 18.1.3 2018-07-01 10:10:25 +01:00
Adam Jackson a3c47870c3 Use ldconfig scriptlet macros 2018-06-29 18:58:54 -04:00
Adam Jackson 952eceed16 Create %{_includedir}/vulkan unconditionally 2018-06-18 17:04:09 -04:00
Adam Jackson 069b694dff Careful, only configure vulkan drivers if hardware 2018-06-18 15:54:49 -04:00
Adam Jackson 09551adef2 Build mesa-vulkan-drivers everywhere
Build actual vulkan drivers on all but s390x
2018-06-18 15:52:47 -04:00
Peter Robinson b3b089e268 18.1.2 2018-06-16 14:57:19 +01:00
Adam Jackson 20136eda59 Build tegra too 2018-06-15 12:21:16 -04:00
Adam Jackson 7c4548d416 libglvnd is epoched 2018-06-14 11:42:26 -04:00
Adam Jackson 856ded30ba Change the name of the fallback GLX library 2018-06-14 11:41:08 -04:00
Adam Jackson 1c741b9561 this would all be easier if we just built amdgpu on arm32 2018-06-06 14:06:51 -04:00
Adam Jackson 866b3ee53d ,,, 2018-06-06 13:02:20 -04:00
Adam Jackson 1e7a119168 hrgnarhgnhrn 2018-06-05 15:31:07 -04:00
Adam Jackson c0b70431cf Stop mentioning ppc and s390, we don't build for them anymore
Remove with_llvm, now always true
Switch with_radeonsi to be an exclude pattern, apparently not available
  for armv7hl.
2018-06-05 14:52:02 -04:00
Adam Jackson 29be30fb65 Stop mentioning ppc and s390, we don't build for them anymore
remove with_llvm and with_radeonsi as they're now always true
2018-06-05 13:48:27 -04:00
Peter Robinson 9a301bf631 18.1.1 2018-06-03 15:51:16 +01:00
Peter Robinson ebeaacc9ff 18.1.0 2018-05-24 09:03:43 +01:00
Peter Robinson 16891760f9 18.1.0~rc4 2018-05-12 13:38:46 +01:00
Peter Robinson 898828fbda 18.1 rc3 2018-05-05 15:14:33 +01:00
Igor Gnatenko 02fc13176f
Update ot 18.1.0~rc2
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-05-04 12:23:31 +02:00
Peter Robinson 4ad788d784 fix merge 2018-05-01 10:18:11 +01:00
Peter Robinson 6e7ae21362 18.0.2 2018-05-01 09:49:00 +01:00
Jonas Ådahl 2f02d35654 Disable rgb10 configs by default
rgb10 configs are not handled very well by applications using clutter,
and possibly other applications as well, so don't break those by
disabling support for rgb10 configs by default.

Also re-add python2 as a build requirement, as merge_driinfo.py
depends on it.

https://bugzilla.redhat.com/show_bug.cgi?id=1560481
2018-04-24 16:18:50 +02:00
Jonas Ådahl 1b1acd32b2 Disable rgb10 configs by default
rgb10 configs are not handled very well by applications using clutter,
and possibly other applications as well, so don't break those by
disabling support for rgb10 configs by default.

Also re-add python2 as a build requirement, as merge_driinfo.py
depends on it.

https://bugzilla.redhat.com/show_bug.cgi?id=1560481
2018-04-24 15:37:41 +02:00
Adam Jackson c8975107f9 Mesa 18.0.1 2018-04-18 13:37:30 -04:00
Adam Jackson 8f740e5d72 Mesa 18.0.1 2018-04-18 13:36:37 -04:00
Kalev Lember 5a0343c35c Re-enable wayland support
Previous commit accidentally disabled all of wayland support, instead of
just dropping mesa-libwayland-egl subpackage. This now re-enables
wayland support and reworks the conditionals so that we only drop drop
mesa-wayland-egl subpackage in F28+, where it is now part of wayland
source package.

https://bugzilla.redhat.com/show_bug.cgi?id=1564210
2018-04-09 16:40:55 +02:00
Kalev Lember 9f97135799 Re-enable wayland support
Previous commit accidentally disabled all of wayland support, instead of
just dropping mesa-libwayland-egl subpackage. This now re-enables
wayland support and reworks the conditionals so that we only drop drop
mesa-wayland-egl subpackage in F28+, where it is now part of wayland
source package.

https://bugzilla.redhat.com/show_bug.cgi?id=1564210
2018-04-09 16:37:49 +02:00
Tom Stellard 8d99dc695b Disable build of wayland packages. These have been obseleted by wayland-devel. 2018-04-03 20:11:57 +00:00
Tom Stellard eee84703a2 Disable build of wayland packages. These have been obseleted by wayland-devel. 2018-04-03 19:41:49 +00:00
Tom Stellard cfb94d114d Rebuild against libLLVM.so with symbol versioning enabled 2018-04-02 15:45:08 +00:00
Peter Robinson 0258306f9b move opencl to better location, fix s390x build 2018-03-31 04:01:31 +01:00
Adam Jackson 5874b7ff91 Unifarch OpenCL and OpenMAX (except ppc32 and s390 because llvm)
Simplify C/LDFLAGS setup to match
Drop -static-libstdc++ and related hacks
Drop S3TC build hack
2018-03-28 12:52:17 -04:00
Igor Gnatenko e750bd19e5
Update to 18.0.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-03-28 11:28:36 +02:00
Peter Robinson 0202d9c9e5 18.0.0 rc5 2018-03-26 10:26:10 +01:00
Adam Jackson 7681f8885a Build with python3 2018-03-19 16:26:11 -04:00
Igor Gnatenko 309f7dd88b
Honor CXXFLAGS / LDFLAGS
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1548749
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-03-02 09:31:28 +01:00
Igor Gnatenko 792e92b385
Backport patch to fix video corruption
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-26 08:29:01 +01:00
Igor Gnatenko 21e39c1c80
disable annotated build to fix FTBFS
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-19 12:57:46 +01:00
Igor Gnatenko a41f97859c
Update to 18.0.0~rc4
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-19 12:14:51 +01:00
Igor Gnatenko 5bcb836bb5
Update to 18.0.0~rc3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 08:17:35 +01:00
Fedora Release Engineering 9e1266e707 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 01:41:09 +00:00
Peter Robinson 14dcbf6097 add patch to fix utils builds 2018-01-29 18:20:52 +00:00
Peter Robinson 6fb8ed7a72 17.3.3 2018-01-22 12:41:19 +00:00
Peter Robinson d31e23e5de 17.3.2 2018-01-13 04:30:39 +00:00
Igor Gnatenko 7a95aff696 Merge branch 'master' into f27 2018-01-01 22:29:30 +01:00
Igor Gnatenko 4e4216637e compress archive
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-01 22:27:43 +01:00
Igor Gnatenko a9b186ccff Update to 17.3.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-01 22:27:35 +01:00
Tom Stellard 1d7d2f8a1d Rebuild for LLVM 5.0 2017-12-13 04:29:21 +00:00
Igor Gnatenko 6131d22481 Sanitize tarball
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-10 18:33:17 +01:00
Igor Gnatenko da246290ca Sanitize tarball
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-10 18:14:35 +01:00
Peter Robinson 9ef43a3813 17.3.0-rc3 2017-11-08 15:25:48 +00:00
Peter Robinson 54da506bb9 update OMX config option 2017-11-06 16:50:52 +00:00
Peter Robinson 028106f748 17.3.0-rc2 2017-11-06 16:24:54 +00:00
Peter Robinson 4c47ac4973 17.2.4 2017-10-31 13:57:30 +00:00
Tom Stellard f3c14bfa07 Rebuild for LLVM 5.0.0 2017-10-23 22:37:18 +00:00
Gwyn Ciesla 2e4cbfbb1e 17.2.3 2017-10-19 11:53:13 -05:00
Peter Robinson 8c5aa4596e Fix for vc4/Raspberry Pi 2017-10-11 16:48:21 +01:00
Dave Airlie 650dc1f8a8 Fix i686 vulkan packaging 2017-10-09 12:48:34 +10:00
Dave Airlie 1a2fde64df enable vulkan on 32-bit x86 2017-10-09 12:30:33 +10:00
Adam Jackson 163e745ef5 bump the release, dummy 2017-10-03 16:08:06 -04:00
Adam Jackson 7e3da0f877 Backport S3TC support from master 2017-10-03 16:06:59 -04:00
Peter Robinson 2b4a64fcd2 17.2.2 2017-10-03 08:57:16 +01:00
Peter Robinson dc290cbce6 17.2.1 2017-09-21 09:45:35 +01:00
Peter Robinson ec675353ea Add upstream patch for glibc xlocale.h change (fdo bz 102454) 2017-09-11 16:02:00 +01:00
Peter Robinson 9d1c7fb591 17.2.0 GA 2017-09-05 18:33:04 +01:00
Peter Robinson 1f91a56b73 17.2.0-rc6 2017-08-31 14:25:41 +01:00
Peter Robinson 674d9cd03c 17.2.0-rc5 2017-08-22 08:49:18 +01:00
Peter Robinson 660cc27a8b 17.2.0-rc4 2017-08-14 09:36:07 +01:00
Fedora Release Engineering 35fdde92a0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 03:15:10 +00:00
Fedora Release Engineering dfa08cba74 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 21:19:12 +00:00
Peter Robinson 0e45dd44bf 17.1.5 2017-07-18 00:27:17 +01:00
Adam Jackson 48435d88d9 remove eglext.h 2017-07-13 15:45:27 -04:00
Adam Jackson a58704dc19 Stop replacing eglext.h, we're up to date again 2017-07-13 15:45:04 -04:00
Peter Robinson e0caeb4e71 17.1.4 2017-07-01 13:59:43 +01:00
Peter Robinson eebf5854bf update of vc4 patch set to fix ftb 2017-06-20 01:23:52 +01:00
Peter Robinson 11737d58ed Fixes and perf improvements for vc4 2017-06-19 22:35:35 +01:00
Peter Robinson 9a28d63085 17.1.3 2017-06-19 16:21:37 +01:00
Peter Robinson 355bee1f82 some etnaviv fixes 2017-06-14 15:24:57 +01:00
Peter Robinson 1d93ede51c 17.1.2 2017-06-06 13:44:11 +01:00
Adam Jackson 9859f133a4 Disable BGRA8 images on Fermi 2017-06-05 15:04:31 -04:00
Peter Robinson 0f297014f0 17.1.1 2017-05-25 11:51:49 +01:00
Dave Airlie f8017a8979 fix rc tag 2017-05-11 12:27:49 +10:00
Dave Airlie c5cd37ecae Update to 17.1.0 2017-05-11 12:22:51 +10:00
Peter Robinson dfb97a98c8 17.1.0-rc4 2017-05-09 23:54:36 +01:00
Peter Robinson ce6b1f6fe6 Enable renderonly support for i.MX SoC (rhbz #1424714) 2017-04-28 13:34:04 +01:00
Peter Robinson dbe06c1abe 17.1.0-rc2 2017-04-24 23:36:52 +01:00
Peter Robinson e07a5d5ab0 add patch to disable NEON on aarch64 for vc4 driver (fixes FTBFS) 2017-04-19 13:43:01 +01:00
Igor Gnatenko 38f1735351 remove ilo
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-04-18 09:53:59 +02:00
Igor Gnatenko d315238f8a fixup! fixup! remove already applied patches
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-04-18 09:24:22 +02:00
Igor Gnatenko 15bc91a6c0 remove already applied patches
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-04-18 09:23:09 +02:00
Igor Gnatenko 0a12b986b3 Update to 17.1.0-rc1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-04-18 09:05:17 +02:00
Igor Gnatenko b1038ca5da Update to 17.0.3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-04-02 12:28:28 +02:00
Igor Gnatenko 20c1530be6 Rebuild for LLVM4
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-03-24 08:31:49 +01:00
Peter Robinson 25ca629e53 17.0.2 2017-03-20 16:53:56 +00:00
Hans de Goede ac171aef50 Fix glXGetDriverConfig not working with glvnd (rhbz#1429894)
Fix indirect rendering, add libGLX_indirect.so.0 symlink (rhbz#1427174)
2017-03-20 12:19:29 +01:00
Peter Robinson 0e5d9b87b5 Rebuild for aarch64 llvmpipe fix (rhbz 1429050) 2017-03-14 15:51:24 +00:00
Igor Gnatenko 7118b89cc9 remove already applied patches
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-03-05 08:43:23 +01:00
Igor Gnatenko e1e0287801 Update to 17.0.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-03-05 08:11:04 +01:00
Igor Gnatenko 332af5bab8 drop sha1 requirement
17.0.0 has its own implementation of sha1 algo, so it doesn't need
any external one.

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-02-13 22:03:51 +01:00
Peter Robinson 853543c3ea 17.0.0 GA 2017-02-13 19:30:39 +00:00
Peter Robinson e22081f3e4 17.0.0-rc3 2017-02-06 21:46:05 +00:00
Hans de Goede 9817aed1e8 Fix GLX_SGIX_fbconfig extension dispatching with glvnd, this fixes games such
as "The Binding of Isaac: Rebirth" and "Crypt of the NecroDancer" from Steam
2017-02-06 14:04:00 +01:00
Hans de Goede ce722cdceb Update eglext.h to 20161230 version this brings in some new defines needed
by some apps / libraries
2017-02-02 19:15:32 +01:00
Hans de Goede 3313153b56 Update eglext.h to 20161230 version this brings in some new defines needed
by some apps / libraries
2017-02-02 18:55:09 +01:00
Peter Robinson 88eceaf98a drop upstream patch 2017-01-28 13:07:47 +00:00
Peter Robinson 741532f45c 17.0.0-rc2 2017-01-28 13:00:04 +00:00
Peter Robinson 0e54aa790f Enable etnaviv gallium driver 2017-01-21 13:48:46 +00:00
Igor Gnatenko 97de494308 fix build on big-endian
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-20 10:15:29 +01:00
Igor Gnatenko dbf4ade69d Update to 17.0.0-rc1
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-20 09:49:47 +01:00
Hans de Goede 5e8f8f1e6b Enable libglvnd support (rhbz#1413579) 2017-01-17 12:28:57 +01:00
Hans de Goede 0e83570d6c Enable libglvnd support (rhbz#1413579) 2017-01-17 10:37:31 +01:00
Igor Gnatenko 37749951bc Add valgrind BuildRequires to have valgrind support
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 22:39:21 +01:00
Peter Robinson fa6b16e99c 13.0.3 2017-01-06 11:41:35 +00:00
Igor Gnatenko 6ebf01b0cf Use nettle for sha1
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-12-12 16:12:58 +01:00
Peter Robinson ad6ddb6ccb 13.0.2 GA 2016-11-29 16:18:54 +00:00
Peter Robinson 69876bd3b7 13.0.1 GA 2016-11-15 12:39:13 +00:00
Peter Robinson 0ca415a928 Don't ship duplicate vulkan devel headers 2016-11-02 17:04:37 +00:00
Peter Robinson 01f7915dd8 don't build vulkan on i686 2016-11-02 13:56:36 +00:00
Peter Robinson dd9168f626 ensure with_vulkan is defined on all arches 2016-11-02 13:10:22 +00:00
Peter Robinson bfba468339 fix if conditional 2016-11-02 12:41:54 +00:00
Peter Robinson 0e51efd867 Add options for enabling vulkan components, Enable intel/radeon vulkan drivers 2016-11-02 12:37:57 +00:00
Peter Robinson e967417d90 13.0.0 2016-11-02 10:14:04 +00:00
Dave Airlie eb0660f78a rebuild for llvm 3.9 2016-11-01 14:15:04 +10:00
Peter Robinson 1f181f24a5 13.0.0-rc2 2016-10-24 20:16:25 +01:00
Igor Gnatenko 14d60680a5 add GLES3/gl32.h to files
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-10-20 08:09:17 +02:00
Igor Gnatenko 9081fad936 mesa_glinterop.h is not installed anymore
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-10-20 07:49:51 +02:00
Igor Gnatenko ffb0e94a5f 13.0.0-rc1
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-10-20 07:30:02 +02:00
Hans de Goede 5950c82692 Add 2 patches from upstream to fix DRI3 vaapi crashes (rhbz1309446, fdo71759) 2016-10-11 15:08:51 +02:00
Peter Robinson 2e9ceb64e8 12.0.3 2016-09-18 20:01:03 +01:00
Peter Robinson 6877daed3e 12.0.2 2016-09-05 21:00:40 +01:00
Hans de Goede 1d4ebbf9ec Fix PRIME fd leak 2016-09-05 15:28:25 +02:00
Igor Gnatenko 86cda86865 own /usr/include/GLES3
https://bugzilla.redhat.com/show_bug.cgi?id=1252588

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-08-25 19:44:07 +02:00
Adam Jackson a6ffbb9492 Remove BuildRequires: xorg-x11-server-devel
This doesn't seem to have ever been _really_ needed? This would build
something vaguely like the modesetting X driver but targetting exa
instead of glamor. I don't think we've ever built that driver from
mesa.spec; we used to build xorg-x11-drv-vmware from here, back in the
7.11 era, but that's long since been split apart. The upstream code and
dependency on xorg-server.pc has been gone since:

    commit 69b425efae189af6068b28d1da5a93d27c5315a7
    Author: Matt Turner <mattst88@gmail.com>
    Date:   Sat Oct 26 17:25:11 2013 -0700

	st/xorg: Delete.

So that's nice, because it eliminates a nasty bootstrap issue where
xorg-x11-server-devel requires mesa-libGL-devel.
2016-08-23 12:37:13 -04:00
Igor Gnatenko 07210b55a9 Fix broken deps with OpenCL
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-08-15 20:50:42 +02:00
Igor Gnatenko 9d6575e488 remove ciruclar dep
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-08-14 14:38:35 +02:00
Igor Gnatenko 5943794afe Fix broken deps
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-08-14 14:31:12 +02:00
Igor Gnatenko c8be0f7e63 fix typo in requires
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-08-14 13:23:19 +02:00
Igor Gnatenko 9094cdac87 Slightly refactor spec; Drop virtual provides for OCL
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-08-14 13:01:59 +02:00
Orion Poplawski c98b5b27e4 Add missing %{?_isa} to requires in some devel sub-packages (bug #1138463) 2016-07-19 13:36:24 -06:00
Igor Gnatenko b4ab48f986 12.0.1
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-07-10 21:42:20 +02:00
Igor Gnatenko 5c41f5376f 12.0.0
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-07-08 18:44:35 +02:00
Igor Gnatenko ef49a37612 12.0.0-rc4
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-06-22 07:54:22 +02:00
Adam Jackson c90f72f1a6 Fix packaging error on s390* 2016-06-20 14:20:42 -04:00
Igor Gnatenko 6e30f9806b remove gallium_drv_video.so and replace by drivers
it's not anymore installed since 0c0f841e5de27d01312f8857641668ca439b1ab1

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-06-20 11:49:36 +02:00
Igor Gnatenko 46d1191d85 12.0.0-rc3
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-06-20 11:02:22 +02:00
Dominik 'Rathann' Mierzejewski 51b9477b60 add missing dependency for /etc/OpenCL/vendors ownership (RHBZ #1265948) 2016-06-14 12:05:26 +02:00
Igor Gnatenko 3d34ee484b 12.0.0-rc2
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-06-14 10:04:25 +02:00
Igor Gnatenko 7794d34f55 12.0.0-rc1
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-06-01 12:44:50 +02:00
Igor Gnatenko b73f9d0ee3 add mesa_glinterop.h to %files
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-05-01 08:55:00 +02:00
Igor Gnatenko 0a3293d6d5 rebase patches
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-05-01 08:13:24 +02:00
Igor Gnatenko b4248df350 cbcd7b6
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-05-01 01:37:52 +02:00
Igor Gnatenko ab311a5cdd remove non-existent license
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-04-14 08:36:03 +02:00
Igor Gnatenko bcc91207a2 disable swr
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-04-14 08:01:24 +02:00
Igor Gnatenko e461d5299e 171a570
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-04-14 07:38:29 +02:00
Björn Esser 51f144fa96 add virtual Provides for ocl-icd (RHBZ #1317602) 2016-04-08 18:49:59 +02:00
Igor Gnatenko 1e0aa3c74f fixup building swr
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-03-24 11:57:37 +01:00
Igor Gnatenko 00388296b4 cleanups
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-03-20 14:48:31 +01:00
Igor Gnatenko 31bab3a45a Update to 11.2.0-rc3
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-03-20 09:26:45 +01:00
Dave Airlie fb5bd45690 bump mesa build for llvm 2016-02-19 10:20:35 +10:00
Dave Airlie a78cc1b3d1 hack llvm so name. 2016-02-13 05:49:21 -05:00
Dave Airlie 2aa1e52e83 rebuild against new llvm packages 2016-02-12 20:07:36 +10:00
Adam Jackson 68acb58a00 Fix OpenCL-enabled FTBFS by not forcing clang search path to /usr/lib 2016-02-11 13:38:12 -05:00
Dennis Gilmore a4fd4da5a4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 05:18:13 +00:00
Adam Jackson 1693c0b99e Drop BR: llvm-static 2016-01-27 17:25:57 -05:00
Adam Jackson 9654f749e7 Rebuild for llvm 3.7.1 library split 2016-01-27 13:31:14 -05:00
Igor Gnatenko d5e29814ea 24ea81a
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-01-24 17:13:22 +01:00
Peter Robinson aa9021e94e OpenCL now supported on aarch64 2016-01-22 03:02:07 +00:00
Igor Gnatenko 18b9324ce1 5e3edd4
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-01-10 11:32:46 +01:00
Adam Jackson cf99e4b75f Mangle libtool even harder to get -static-libstdc++ to work 2016-01-08 13:28:03 -05:00
Igor Gnatenko 8e49a647e0 70d8dbc
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-12-29 19:56:31 +01:00
Igor Gnatenko 789515fb02 drop applied virgl patch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-12-02 12:52:20 +01:00
Igor Gnatenko 139bd3d4b7 56aff6b
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-12-02 11:56:26 +01:00
Igor Gnatenko c697abeb26 apply patch for virgl
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-11-22 10:15:16 +01:00
Igor Gnatenko c313ce47a7 86fc97d
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-11-22 09:34:08 +01:00
Igor Gnatenko 733357ded6 upload sources
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-11-05 21:21:46 +01:00
Igor Gnatenko 117d7875ef 5ae37ae
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-11-05 21:12:44 +01:00
Adam Jackson e443b9d877 Link with -static-libstdc++ to work around Steam bundling its own copy 2015-11-05 12:04:28 -05:00
Igor Gnatenko 30857cce6c fix filelists
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-23 11:41:36 +02:00
Igor Gnatenko c79c4e3498 3994ef5; Enable VirGL driver
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-23 11:19:46 +02:00
Igor Gnatenko cdd038df64 Disable SWR rasterizer
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-22 20:36:09 +02:00
Igor Gnatenko fb8d1bc278 7182498
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-22 18:15:12 +02:00
Igor Gnatenko 7777524ef9 Enable experimental SWR rasterizer
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-22 17:47:07 +02:00
Igor Gnatenko 5492fe6e75 4a168ad
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-14 07:10:55 +02:00
Igor Gnatenko d3dca09dbe remove i965_Remove_early_release_of_DRI2_miptree.patch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-07 12:08:01 +02:00
Igor Gnatenko 8463303ff0 47d1199
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-10-07 11:57:32 +02:00
Igor Gnatenko 658b760b1b Revert "add patch for RHBZ #1265997"
This reverts commit c6ea6505c2.
2015-09-26 09:36:25 +02:00
Igor Gnatenko c6ea6505c2 add patch for RHBZ #1265997
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-09-26 09:33:55 +02:00
Igor Gnatenko 3851ec7962 9932142
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-09-26 09:31:56 +02:00
Igor Gnatenko 77c39f0602 47e18a5; rebuild for llvm 3.7
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-09-16 08:59:29 +02:00
Igor Gnatenko e00747f475 d6fbcf6
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-09-13 11:31:43 +02:00
Rex Dieter da19c59a91 Add brw_meta_fast_clear crash workaround patch (#1259443, fdo#86281) 2015-09-10 12:02:13 -05:00
Igor Gnatenko 5b277df131 60aea30
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-09-02 01:46:05 +03:00
Igor Gnatenko e87e31dac8 use git-core in BR instead of git
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-24 18:50:10 +03:00
Igor Gnatenko e68d4e98c0 4e5752e
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-24 18:49:40 +03:00
Igor Gnatenko 3e882f2d33 use 11.0 branch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-24 18:42:26 +03:00
Igor Gnatenko 215d161634 drop merged opencl patch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-09 18:16:28 +03:00
Igor Gnatenko 97a957ad22 today's snapshot; add surfaceless EGL platform
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-09 18:01:20 +03:00
Igor Gnatenko 66ed79bcd6 Update to 11.0.0
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-08-01 18:29:35 +03:00
Peter Robinson 3e520d73d9 Use %%license, minor spec cleanups 2015-07-15 00:01:32 +01:00
Igor Gnatenko 9739a7407b ea633db
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-14 11:55:26 +03:00
Igor Gnatenko 248914a5b6 drop unused patches
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-07 12:54:05 +03:00
Igor Gnatenko 2218366edd Drop unecessary make for s390
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-07 12:41:36 +03:00
Igor Gnatenko ddaee02085 make-release_tarball: fix url
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-07 12:30:31 +03:00
Igor Gnatenko 73b10fe0ac 8787141
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-06-22 11:23:19 +03:00
Igor Gnatenko fa0b41e9b4 drop nir linker patch (already applied)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-06-19 11:18:44 +03:00
Igor Gnatenko 719a8c9d60 Makefile: switch to 10.6
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-06-18 19:16:48 +03:00
Dennis Gilmore 4de1f0c875 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 20:00:56 +00:00
Igor Gnatenko fcdd553592 add git to BR everywhere
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-18 10:02:50 +03:00
Igor Gnatenko b4e2acb606 fix macro
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-17 22:29:43 +03:00
Igor Gnatenko aef09c5744 add git to BR if we are building githash
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-17 22:22:48 +03:00
Igor Gnatenko 7f1320a952 5a55f68
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-17 22:09:37 +03:00
Igor Gnatenko 69cda04199 fix building on arm
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-17 15:02:03 +03:00
Igor Gnatenko 3d686dd14b 51e3453
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-07 01:37:36 +03:00
Igor Gnatenko dea189ecdb c1485f4
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-04-20 22:40:00 +03:00
Adam Jackson b672210c09 F23 rebuild against llvm 3.6.0 2015-04-09 17:49:11 -04:00
Rob Clark 28f7e7ed51 enable vc4 on arm 2015-02-27 14:05:39 -05:00
Igor Gnatenko c46e5df245 10.6.0-devel
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-02-23 23:30:13 +03:00
Igor Gnatenko 9199e7c86e add python-mako as BR
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-02-19 16:44:25 +03:00
Igor Gnatenko feba29ce79 10.5.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-02-19 11:32:24 +03:00
Igor Gnatenko c41912e78a 6171131
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-01-02 07:36:54 +03:00
Igor Gnatenko 10866d4fba c3260f8
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-01-02 06:36:09 +03:00
Igor Gnatenko c768d0580c 290553b
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-01-02 05:36:23 +03:00
Igor Gnatenko e55d6c9d63 b77eaaf
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-01-01 17:36:06 +03:00
Igor Gnatenko e3f53eacdf c633528
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-01-01 04:36:09 +03:00
Igor Gnatenko 8a27b452c7 a6f6d61
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2015-01-01 03:36:06 +03:00
Igor Gnatenko d8dbaa8487 be0311c
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-31 19:36:11 +03:00
Igor Gnatenko 5a79546a1b 609c3e5
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-31 04:36:14 +03:00
Igor Gnatenko 9837611103 3ba57ba
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-31 02:36:08 +03:00
Igor Gnatenko 60dfbbe735 64dcb2b
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-30 06:36:09 +03:00
Igor Gnatenko 091f928e13 6c18279
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-29 23:36:11 +03:00
Igor Gnatenko dbe1091301 0c7f895
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-27 17:36:16 +03:00
Igor Gnatenko 374a3ec936 cb5a372
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2014-12-26 18:09:32 +03:00
Igor Gnatenko b21cd1bddc fix typo in ilo files
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-12-21 21:55:52 +03:00
Igor Gnatenko 58b606e02f fix ilo compiling
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-12-21 21:39:36 +03:00
Igor Gnatenko e5c9a8c068 enable ilo gallium driver
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-12-21 21:23:32 +03:00
Dan Horák 0c78fc8a86 - Sync with_{vaapi,vdpau,nine} settings with F21 2014-12-19 17:31:31 +01:00
Adam Jackson 7424440cc1 Sync ppc build config with F21 2014-12-18 09:56:18 -05:00
Igor Gnatenko 1f1d76882b fix requirements for d3d
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-12-17 01:14:11 +03:00
Igor Gnatenko 2c9e0378af update scripts for 10.4
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
(cherry picked from commit 1c20bc4439)

Conflicts:
	.gitignore
	mesa.spec
	sources
2014-12-14 22:07:47 +03:00
Igor Gnatenko ab2882383e 0d7f4c8
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-12-14 22:06:28 +03:00
Igor Gnatenko 21449d7adf fix libd3d files
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
(cherry picked from commit e9f54e1c4f)
2014-12-14 22:01:40 +03:00
Igor Gnatenko dc2fc7918e Enable Nine state-tracker (Direct3D9 API)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
(cherry picked from commit 0e23b60307)

Conflicts:
	mesa.spec
2014-12-14 22:01:32 +03:00
Igor Gnatenko b1ffe56bdc Enalbe VAAPI state tracker
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
(cherry picked from commit fafb73256a)

Conflicts:
	mesa.spec
2014-12-14 22:00:51 +03:00
Adam Jackson 73be3c3499 Restore hardware drivers on ppc64{,le} 2014-12-11 13:39:40 -05:00
Igor Gnatenko 35be28bfb5 29c7cf2
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-12-02 14:05:21 +03:00
Igor Gnatenko 21de262301 3d9c1a9
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-11-22 18:08:29 +03:00
Igor Gnatenko 4b4ee7ae5b more fix gallium_gbm 2014-11-19 21:42:30 +03:00
Igor Gnatenko df7cbc54f8 drop egl state trackers after c46c551 2014-11-19 20:50:50 +03:00
Igor Gnatenko 918be9fe4c commit spec 9460cd3 2014-11-19 20:29:26 +03:00
Igor Gnatenko f62394b9bc 9460cd3
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-11-19 20:24:09 +03:00
Igor Gnatenko 34295e7be7 package r300_vdpau since b7186eb
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-11-10 10:14:47 +03:00
Igor Gnatenko 71ef516ea6 f3b709c
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-11-10 09:16:01 +03:00
Dave Airlie d30aaf3937 rebuild for llvm 2014-10-28 15:02:43 +10:00
Igor Gnatenko ef3aca3e22 1a17098
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-10-27 09:18:42 +03:00
Igor Gnatenko 66038b76f1 fix gallium-pipe drvs for arm arch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-09-27 16:43:28 +04:00
Igor Gnatenko 94de6bab59 c3f17bb18f597d7f606805ae94363dae7fd51582
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-09-27 14:31:33 +04:00
Igor Gnatenko 730b693296 patches from karsten
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-09-06 12:34:59 +04:00
Igor Gnatenko a66e2c8cd9 1f184bc commit
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-09-06 12:29:20 +04:00
Igor Gnatenko 81a9f0c898 add swrast to dri driver list
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-28 18:17:09 +06:00
Igor Gnatenko 1517921697 80771e47b6c1e47ab55f17311e1d4e227a9eb3d8 commit
$ git log c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f..80771e47b6c1e47ab55f17311e1d4e227a9eb3d8 --format="- %H: %s (%an)"
- 80771e47b6c1e47ab55f17311e1d4e227a9eb3d8: radeon/uvd: fix field handling on R6XX style UVD (Christian König)
- 03a99ba9e41ea86355a4febbe0b1a114d5455b9f: vl/compositor: set the scissor before clearing the render target (Christian König)
- b73c20759fe1b4a96296bed58637f5ded7c9155c: st/vdpau: fix vlVdpOutputSurfaceRender(Output|Bitmap)Surface (Christian König)
- e3c251071b0c9396c3ec76d1cf943c60ae297281: ilo: use genhw command opcodes (Chia-I Wu)
- 6c73478223a0ed76e54f14c46831974c3efaacdf: ilo: rename intel_bo_map_unsynchronized() (Chia-I Wu)
- 354d84b6297fe2937e9684175ea9d3b650b75417: ilo: remove max_batch_size (Chia-I Wu)
- fbb869c1aaf6aa5400028556e23bbbb1ba41ce42: ilo: replace domains by reloc flags (Chia-I Wu)
- 01887593a424824426eda75ff90b5e2a49876e86: docs: Update who is working on tessellation (Chris Forbes)
- 38a3490368f6f365890de11a5f2d983b40fbd243: glsl: Remove bogus "OUPTUT" token (Chris Forbes)
- 83503f9e68c5b2162682ed5b8691484a6d67aaea: radeonsi: handle PIPE_BIND_BLENDABLE (Marek Olšák)
- 770719eb821f96688c7efa12dc42805590f984ef: r600g: only set PIPE_BIND_BLENDABLE if colorbuffer rendering is supported (Marek Olšák)
- bc0ae40616a89e748c165aa2963c712f7640fb0a: r300g: handle PIPE_BIND_BLENDABLE (Marek Olšák)
- 7317f1185932e2188206069a938c598f9cd18c60: vc4: Stop doing qpu_inst(add, NOP) or qpu_inst(NOP, mul). (Eric Anholt)
- 78d144f7de8cad42dfe588a667e105543f6b2e4b: vc4: Set the other WADDR in the qpu instruction helpers. (Eric Anholt)
- 54499a85fff415e5c627a44d27a3592b6633bd4b: vc4: Merge qpu_a_NOP() and qpu_m_NOP to a single qpu_NOP() helper. (Eric Anholt)
- 1a7035f386c4402b07e7a2073daf914f95bd0a02: vc4: Ignore WADDRs from the other half of the instruction when merging. (Eric Anholt)
- 3212bafc28ca3991a89e0554d1867eaa5fde6a0b: vc4: Fix LT/GE set-0-or-1 compares. (Eric Anholt)
- e2f66315cbf234779b195b6f7390ea9b11b288ad: u_vbuf: Add a few more format fallbacks. (Eric Anholt)
- bbbe3b65adee44c164532d7afb4ff8fd8f88bbf4: u_vbuf: Simplify the format fallback translation. (Eric Anholt)
- 306e421887720b149be77c749108bcffcebe34f6: freedreno/a2xx: fix segfault (Rob Clark)
- bd3b0964675d36e753e273d5667b922cc9baac4a: freedreno/a3xx: handle first/last level properly (Rob Clark)
- b40a6c2b17de1f63d70d62608737ed9a259da1c5: freedreno: implement pipe_flush_resource() (Rob Clark)
- 478a08ebd2b29724f2d440e560ab331c534236cd: freedreno: don't ignore src/dst level (Rob Clark)
- 8d8a5eb792c662a8def7c9ab65d2df67972cf659: vc4: Fix save/restore of the VS/FS in the blitter. (Eric Anholt)
- 9542e682078a1b2e65f6b62a8db58f25cff18078: vc4: Clear padding of ioctl arguments. (Eric Anholt)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-27 10:06:02 +06:00
Igor Gnatenko 21f1a7fe9c c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f commit
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-23 21:51:49 +06:00
Igor Gnatenko 488ba0676f Installed (but unpackaged) file(s) found: /usr/include/GL/glcorearb.h
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-22 19:40:44 +06:00
Igor Gnatenko 316f8d3ca3 e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 commit
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-22 16:23:26 +06:00
Peter Robinson 4aaa530601 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 09:15:33 +00:00
Igor Gnatenko 8edaa15c94 Installed (but unpackaged) file(s) found: /usr/lib/dri/kms_swrast_dri.so
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-09 19:00:38 +02:00
Igor Gnatenko f098f029ba fix freedreno files
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-08 11:30:31 +02:00
Igor Gnatenko ad42db06b8 fix kms_swrast file
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-07 09:58:01 +02:00
Igor Gnatenko aa0a284f8f package kms swrast
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-06 10:25:46 +02:00
Igor Gnatenko 976931260e c40d7d6d948912a4d51cbf8f0854cf2ebe916636 and opencl rebuild
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-06 10:04:02 +02:00
Igor Gnatenko 6ef79b1be9 fix files when freedreno enabled
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-07-12 10:58:53 +04:00
Igor Gnatenko 07784377b5 fix version, files
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-07-12 01:19:54 +04:00
Igor Gnatenko 007eb4e80d Rebase to 'master' branch (f381c27c548aa28b003c8e188f5d627ab4105f76 commit)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-07-11 19:29:50 +04:00
Igor Gnatenko 17dc7f453b 10.2.3 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-07-11 18:52:43 +04:00
Peter Robinson 7526e1bbd7 Build aarch64 options the same as ARMv7, Fix PPC conditionals 2014-07-08 13:50:03 +01:00
Igor Gnatenko dbe5a2835d Fix up intelInitScreen2 for DRI3 (RHBZ #1115323) (patch from drago01)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-07-04 00:26:07 +04:00
Dave Airlie d3fa447215 add dri3 gnome-shell startup fix from Jasper. 2014-06-27 10:11:32 +10:00
Igor Gnatenko f002bb3166 10.2.2 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-06-25 20:18:47 +04:00
Igor Gnatenko b9f23898bd drop radeonsi llvm hack
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-06-11 11:05:41 +04:00
Igor Gnatenko 63f2ce2b77 bump version
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-06-08 01:51:07 +04:00
Igor Gnatenko fc7aab2e48 10.2.1 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-06-08 01:49:42 +04:00
Dennis Gilmore 21141612a8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 04:04:15 -05:00
Dan Horák 1320f8d741 - fix build without hardware drivers 2014-06-04 18:19:27 +02:00
Igor Gnatenko bcf19e400c 10.2-rc5 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-31 12:37:55 +04:00
Brent Baude 3a75afe7c8 Removing ppc64le arch from with_llvm 2014-05-28 16:25:15 -05:00
Igor Gnatenko 208a9dd10d i915: add a missing NULL pointer check (RHBZ #1100967)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

Conflicts:
	mesa.spec
2014-05-28 23:05:18 +04:00
Igor Gnatenko 26ff2a1b0a 10.2-rc4 upstream release, add back radeonsi hack
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-24 11:07:57 +04:00
Igor Gnatenko c0e013caf5 10.2-rc3 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-17 13:11:19 +04:00
Igor Gnatenko 6f94389829 drop radeonsi hack for LLVM
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-10 10:18:31 +04:00
Igor Gnatenko ef6eb2dc04 10.2-rc2 upstream release
$ git log --format="- %s (%an)" e8f61503205a5f44e6156393eb799856f095bf14..0b3126bddddbb3555c8ee97f2158234cf725afa2
- mesa: Bump version to 10.2-rc2 (Ian Romanick)
- glx/tests: Partially revert commit 51e3569573a7b3f8da0df093836761003fcdc414 (Emil Velikov)
- configure: error out if building GBM without dri (Emil Velikov)
- i965: Fix GPU hangs on Broadwell in shaders with some control flow. (Kenneth Graunke)
- radeonsi: Enable geometry shaders with LLVM 3.4.1 (Tom Stellard)
- configure.ac: Add LLVM_VERSION_PATCH to DEFINES (Tom Stellard)
- st/xa: Fix performance regression introduced by commit "Cache render target surface" (Thomas Hellstrom)
- clover: Destory pipe_screen when device does not support compute v2 (Tom Stellard)
- pipe-loader: Don't destroy the winsys in the sw loader (Tom Stellard)
- draw: do not use draw_get_option_use_llvm() inside draw execution paths (Roland Scheidegger)
- mesa: Fix MaxNumLayers for 1D array textures. (Kenneth Graunke)
- i965: Enable GL_ARB_texture_view on Broadwell. (Kenneth Graunke)
- nv50/ir/gk110: fix set with f32 dest (Ilia Mirkin)
- linker: Fix consumer_inputs_with_locations indexing (Ian Romanick)
- meta: Only clear the requested color buffers. (Kenneth Graunke)
- meta: Add infrastructure for saving/restoring the DrawBuffers state. (Kenneth Graunke)
- meta: Add a new MESA_META_DRAW_BUFFERS bit. (Kenneth Graunke)
- meta: Unify the GLSL and fixed-function clear paths. (Kenneth Graunke)
- i965: Always intel_prepare_render() after invalidating front buffers. (Kenneth Graunke)
- glsl: fix bogus layout qualifier warnings (Tapani Pälli)
- i965: Set miptree target field when creating from a BO. (Kenneth Graunke)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-10 10:00:32 +04:00
Igor Gnatenko 8a4e9e171d Merge branch 'master' of kwizart/mesa, bump version, add changelog
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1094588
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-06 12:42:46 +04:00
Nicolas Chauvet c75058be4c Switch from with to enable for llvm shared libs 2014-05-06 09:34:01 +02:00
Nicolas Chauvet 45f61b238b Move egl_gallium.so to the correct location - rhbz#1094588 2014-05-06 09:22:02 +02:00
Nicolas Chauvet b49ca9f39d Move gallium-pipe to the correct sub-package - rhbz#1094588 2014-05-06 09:22:02 +02:00
Igor Gnatenko 89eae0c86f Merge branch 'master' of kwizart/mesa, bump version, add changelog (pt. 2)
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1094199
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-05 15:38:35 +04:00
Nicolas Chauvet dedf55fce6 Enable gallium-egl (needed by freedreeno) 2014-05-05 13:12:43 +02:00
Igor Gnatenko 021c2adadd Merge branch 'master' of kwizart/mesa, bump version, add changelog
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1094199
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-05 15:03:52 +04:00
Nicolas Chauvet 9487c811f4 Enable omx on x86 and arm 2014-05-05 11:53:40 +02:00
Nicolas Chauvet 7aa0856ccb Split _with_xa from _with_vmware 2014-05-05 11:09:13 +02:00
Nicolas Chauvet 732482a4c1 Add _with_xa when arch is arm and _with_freedreeno
According to the build instructions for freedreeno
https://github.com/freedreno/freedreno/wiki/Git-Trees-%26-Branches#build-instructions
the driver requires the xa state tracker to be enabled
2014-05-05 11:09:06 +02:00
Igor Gnatenko f341e78569 typo fix in file list 2014-05-05 12:27:03 +04:00
Igor Gnatenko 000ebe36be 10.2-rc1 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-05-05 12:12:15 +04:00
Igor Gnatenko fcf27045cb Update to today's snapshot, apply patches for r600 GPU clock
- glsl: Only allow `invariant` on shader in/out between stages. (Chris Forbes)
- mesa: Fix error code generation in glReadPixels() (Anuj Phogat)
- mesa: Add an error condition in glGetFramebufferAttachmentParameteriv() (Anuj Phogat)
- mesa: Add error condition for integer formats in glGetTexImage() (Anuj Phogat)
- mesa: Add helper function _mesa_is_format_integer() (Anuj Phogat)
- i965: Fix component mask and varying_to_slot mapping for gl_ViewportIndex (Anuj Phogat)
- i965: Fix component mask and varying_to_slot mapping for gl_Layer (Anuj Phogat)
- i965: Put an assertion to check valid varying_to_slot[varying] (Anuj Phogat)
- mesa: fix GetStringi error message with correct function name (Benjamin Bellec)
- mesa: Fix error condition for multisample proxy texture targets (Anuj Phogat)
- swrast: Add glBlitFramebuffer to commands affected by conditional rendering (Anuj Phogat)
- st/xa: Cache render target surface (Thomas Hellstrom)
- mesa: fix check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT() (Samuel Iglesias Gonsalvez)
- mesa: Fix glGetVertexAttribi(GL_VERTEX_ATTRIB_ARRAY_SIZE) (Anuj Phogat)
- r600g: Disable LLVM by default at runtime for graphics (Michel Dänzer)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-04-30 10:20:24 +04:00
Igor Gnatenko 6a418411ac fix buildrequires llvm 3.4-5 to 3.4-6, because 3.4-5 is not available for F20
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-04-19 19:16:04 +04:00
Igor Gnatenko 635d534dda Merge branch 'master' into f20 2014-04-19 19:01:53 +04:00
Igor Gnatenko a70dedee9c 10.1.1 upstream release
- docs: Add the MD5 sums for the 10.1.1 release tar files. (Carl Worth)
- docs: Add release notes for 10.1.1 (Carl Worth)
- Update VERSION to 10.1.1 (Carl Worth)
- i965: Fix buffer overruns in MSAA MCS buffer clearing. (Eric Anholt)
- i965: Avoid dependency hints on math opcodes (Mike Stroyan)
- glsl: Try vectorizing when seeing a repeated assignment to a channel. (Kenneth Graunke)
- glsl: Propagate explicit binding information from the AST all the way to the linker (Ian Romanick)
- linker: Set binding for all elements of UBO array (Ian Romanick)
- linker: Set block bindings based on UniformBlocks rather than UniformStorage (Ian Romanick)
- linker: Clean up "unused parameter" warnings (Ian Romanick)
- glsl: Allow explicit binding on atomics again (Carl Worth)
- linker: Fold set_uniform_binding into call site (Ian Romanick)
- linker: Various trivial clean-ups in set_sampler_binding (Ian Romanick)
- linker: Split set_uniform_binding into separate functions for blocks and samplers (Ian Romanick)
- configure: don't require libudev for gbm or egl drm/wayland (Jonathan Gray)
- configure: cleanup libudev handling (Emil Velikov)
- configure: Use LLVM shared libraries by default (Tom Stellard)
- i965/fs: Don't propagate saturation modifiers if there are source modifiers. (Matt Turner)
- i965/fs: Don't propagate saturate modifiers into partial writes. (Matt Turner)
- i965/fs: Fix off-by-one in saturate propagation. (Matt Turner)
- haiku: Fix build through scons corrections and viewport fixes (Alexander von Gluck IV)
- egl/dri2: use drm macros to construct device name (Jonathan Gray)
- cherry-ignore: Ignore a few patches (Carl Worth)
- r600g: implement edge flags (Marek Olšák)
- r600g: Don't leak bytecode on shader compile failure (Michel Dänzer)
- glx: drop obsolete _XUnlock_Mutex in __glXInitialize error path (Emil Velikov)
- svga: move LIST_INITHEAD(dirty_buffers) earlier in svga_context_create() (Brian Paul)
- i965: Stop advertising GL_MESA_ycbcr_texture. (Kenneth Graunke)
- mesa: add bounds checking to eliminate buffer overrun (Courtney Goeltzenleuchter)
- svga: replace sampler assertion with conditional (Brian Paul)
- i965/vec4: fix record clearing in copy propagation (Chia-I Wu)
- glsl: Fix lack of i2u in lower_ubo_reference. (Kenneth Graunke)
- st/xa: Make sure unused samplers are set to NULL (Thomas Hellstrom)
- st/xa: Bind destination before setting new state (Thomas Hellstrom)
- nouveau: fix firmware check on nvd7/nvd9 (Ilia Mirkin)
- winsys/svga: Fix prime surface references also for guest-backed surfaces (Thomas Hellstrom)
- winsys/svga: Update the vmwgfx_drm.h header to latest version from kernel (Thomas Hellstrom)
- egl/dri2: don't require libudev to build drm/wayland platforms (Jonathan Gray)
- configure.ac: fix the detection of expat with pkg-config (Johannes Nixdorf)
- megadriver_stub.c: don't use _GNU_SOURCE to gate the compat code (Jonathan Gray)
- loader: don't limit the non-udev path to only android (Jonathan Gray)
- loader: use 0 instead of FALSE which isn't defined (Jonathan Gray)
- cso: fix sampler view count in cso_set_sampler_views() (Brian Paul)
- winsys/svga: Replace the query mm buffer pool with a slab pool v3 (Thomas Hellstrom)
- configure: enable dri3 only for linux (Emil Velikov)
- mesa: fix glMultiDrawArrays inside a display list (Brian Paul)
- st/mesa: add null pointer checking in query object functions (Brian Paul)
- mesa: fix unpack_Z32_FLOAT_X24S8() / unpack_Z32_FLOAT() mix-up (Brian Paul)
- st/mesa: fix sampler view handling with shared textures v4 (Christian König)
- draw: Duplicate TGSI tokens in draw_pipe_pstipple module. (José Fonseca)
- st/mesa: recreate sampler view on context change v3 (Christian König)
- nvc0/ir: move sample id to second source arg to fix sampler2DMS (Ilia Mirkin)
- st/mesa: drop the lowering of quad strips to triangle strips (Marek Olšák)
- st/mesa: fix generating mipmaps for cube arrays (Marek Olšák)
- mesa: fix software fallback for generating mipmaps for 3D textures (Marek Olšák)
- mesa: fix software fallback for generating mipmaps for cube arrays (Marek Olšák)
- mesa: allow generating mipmaps for cube arrays (Marek Olšák)
- mesa: fix texture border handling for cube arrays (Marek Olšák)
- c11/threads: don't include assert.h if the assert macro is already defined (Brian Paul)
- nouveau: there may not have been a texture if the fbo was incomplete (Ilia Mirkin)
- nouveau: add forgotten GL_COMPRESSED_INTENSITY to texture format list (Ilia Mirkin)
- mesa/main: condition GL_DEPTH_STENCIL on ARB_depth_texture (Ilia Mirkin)
- loader: add special logic to distinguish nouveau from nouveau_vieux (Ilia Mirkin)
- mesa: mark GL_RGB9_E5 as not color-renderable (Marek Olšák)
- st/mesa: fix per-vertex edge flags and GLSL support (v2) (Marek Olšák)
- i965/fs: Fix register comparisons in saturate propagation. (Kenneth Graunke)
- mesa: return v.value_int64 when the requested type is TYPE_INT64 (Emil Velikov)
- nv50: add missing brackets when handling the samplers array (Emil Velikov)
- r600g,radeonsi: fix MAX_TEXTURE_3D_LEVELS and MAX_TEXTURE_ARRAY_LAYERS limits (Marek Olšák)
- gallium: add endian detection for OpenBSD (Jonathan Gray)
- nv50: adjust blit_3d handling of ms output textures (Ilia Mirkin)
- nouveau: fix fence waiting logic in screen destroy (Ilia Mirkin)
- mesa: fix the format of glEdgeFlagPointer (Marek Olšák)
- r600g: fix blitting the last 2 mipmap levels for Evergreen (Marek Olšák)
- r600g: fix texelFetchOffset GLSL functions (Marek Olšák)
- mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__. (Matt Turner)
- mesa: fix copy & paste bugs in pack_ubyte_SRGB8() (Brian Paul)
- mesa: fix copy & paste bugs in pack_ubyte_SARGB8() (Brian Paul)
- gallium/util: Fix memory leak (Aaron Watry)
- mesa: Allow GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL combinations in glTexImage{123}D() (Anuj Phogat)
- mesa: Set initial internal format of a texture to GL_RGBA (Anuj Phogat)
- st/osmesa: check buffer size when searching for buffers (Brian Paul)
- c11/threads: Don't implement thrd_current on Windows. (José Fonseca)
- mapi/u_thread: Use GetCurrentThreadId (José Fonseca)
- c11/threads: Fix nano to milisecond conversion. (José Fonseca)
- mesa: don't define c99 math functions for MSVC >= 1800 (Hans)
- util: don't define isfinite(), isnan() for MSVC >= 1800 (Hans)
- mesa: don't call ctx->Driver.ClearBufferSubData() if size==0 (Brian Paul)
- softpipe: use 64-bit arithmetic in softpipe_resource_layout() (Brian Paul)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-04-19 18:52:47 +04:00
Adam Jackson a5a4159bbf Merge branch 'master' into f20 2014-04-16 10:57:14 -04:00
Adam Jackson 79a76ee2a5 i can specfile good 2014-04-16 10:56:42 -04:00
Adam Jackson 4077056057 Merge branch 'master' into f20 2014-04-15 17:32:50 -04:00
Adam Jackson 223fa3afe7 Disable DRI3 in F20, it requires libxcb bits we haven't backported. 2014-04-15 17:32:28 -04:00
Adam Jackson e0b1553edf Unbreak changelog 2014-04-15 13:38:51 -04:00
Adam Jackson b2a76586a8 Merge remote-tracking branch 'origin/master' into f20 2014-04-15 13:36:13 -04:00
Adam Jackson 567538d823 Initial ppc64le enablement (no hardware drivers or vdpau yet) 2014-03-26 16:19:20 -04:00
Adam Jackson 0411aeba5e mesa: Don't optimize out glClear if drawbuffer size is 0x0 (fdo #75797) 2014-03-21 11:33:26 -04:00
Dave Airlie f35b486601 rebuild against backported llvm 3.4-5 for radeonsi GL 3.3 support. 2014-03-19 06:17:01 +00:00
Igor Gnatenko 637fa0fa97 10.0.4 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-03-12 20:31:56 +04:00
Dave Airlie 9ed1dd10a3 disable r600 llvmcompiler on upstream advice. 2014-03-12 13:17:59 +10:00
Dave Airlie af7dc30499 disable r600 llvm compiler (upstream advice) 2014-03-12 13:16:28 +10:00
Igor Gnatenko 618ff6d6f0 Merge mesa 10.0.3 into f20
commit '2f9ccd59140af45592bace9f563a2ff2e375668a'

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

Conflicts:
	.gitignore
	0001-swrast-gallium-classic-add-MESA_copy_sub_buffer-supp.patch
	mesa.spec
	sources
2014-03-10 09:32:44 +04:00
Igor Gnatenko 2b2a62db01 10.1 upstream release
- mesa: Bump version to 10.1 (final) (Ian Romanick)
- glx/dri2: fix build failure on HURD (Julien Cristau)
- i965: Validate (and resolve) all the bound textures. (Chris Forbes)
- i965: Widen sampler key bitfields for 32 samplers (Chris Forbes)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-03-05 12:33:52 +04:00
Igor Gnatenko eb1af9860e fix date
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-03-01 22:55:04 +04:00
Igor Gnatenko 6747a404d7 10.1-rc3
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-03-01 21:15:05 +04:00
Igor Gnatenko 9f0930c9e9 really 10.1-rc2
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-02-25 14:05:22 +04:00
Igor Gnatenko f1234e2531 10.1-rc2
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-02-22 15:18:16 +04:00
Adel Gadllah 67f57debb5 Really commit the source file ... 2014-02-08 13:41:42 +01:00
Adel Gadllah 99aa6aab8c Upload the new tarball 2014-02-08 13:36:19 +01:00
Adel Gadllah da2b0d83ac Upload the new tarball 2014-02-08 13:35:59 +01:00
Adel Gadllah 44f8001c58 Upload the new tarball 2014-02-08 13:34:41 +01:00
Adel Gadllah ed62f571be mesa 10.1 rc1 2014-02-08 13:28:02 +01:00
Igor Gnatenko 2f9ccd5914 10.0.3 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-02-06 14:45:51 +01:00
Kyle McMartin f8fdf35359 fix radeonsi_dri.so 2014-02-04 11:57:11 -05:00
Kyle McMartin 397d2d52e4 fix a stupid mistake in my previous commit 2014-02-02 16:25:35 -05:00
Kyle McMartin ffb5ced72c fix up building drivers on AArch64, enable LLVM there and some more fixes
- Eliminate some F17 cruft from the spec, since we don't support it anymore.
- Conditionalize with_radeonsi on with_llvm instead of ppc,s390 && >F-17.
- Conditionalize libvdpau_radeonsi.so.1* on with_radeonsi instead of simply
  with_llvm to fix a build failure on AArch64.
2014-02-02 16:15:35 -05:00
Igor Gnatenko 5278992051 typo: fix macros
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-01-19 00:19:31 +04:00
Igor Gnatenko 6aae606725 enable OpenCL, r600-llvm
Enable OpenCL (RHBZ #887628)
Enable r600 llvm compiler (RHBZ #1055098)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-01-19 00:06:01 +04:00
Dave Airlie b6c637d800 rebuild for llvm 3.4 2014-01-14 17:31:54 +10:00
Igor Gnatenko d49e48377a sanitize tarball
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-01-10 00:35:49 +04:00
Igor Gnatenko 21d6a6267f 10.0.2 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-01-10 00:21:04 +04:00
Igor Gnatenko ecc7e7cfe0 10.0.1 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2013-12-20 23:22:55 +04:00
Igor Gnatenko e5f518e346 9.2.5 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2013-12-20 23:15:00 +04:00
Peter Robinson 5c9d064fb9 - use with_wayland for all wayland conditionals (instead of rhel)
- don't build aarch64 with llvm support for now
- fix aarch64 builds
2013-12-18 20:04:13 +00:00
Dave Airlie 6b27774940 don't build aarch64 with hardware for now 2013-12-17 11:13:00 +10:00
Dave Airlie 9f3eec83cf backport the GLX_MESA_copy_sub_buffer from upstream for cogl 2013-12-13 15:11:06 +10:00
Dave Airlie ddf49f2d51 add software driver copy_sub_buffer support from upstream 2013-12-13 14:36:15 +10:00
Igor Gnatenko 08bc8bfdeb add sources
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2013-12-05 10:38:53 +04:00
Igor Gnatenko 037ad6c04b 10.0 upstream release
v1: dropped libdricore.so* (dropped by upstream)
    updated libxatracker.so.1 to libxatracker.so.2 (updated by upstream)
    updated patches and tools:
    make-git-snapshot updated for 10.0 branch
    sanitize-tarball updated for new functions
    nv-50 build fix updated for new file location
    dropped no-useless-vdpau, because not needed for new mesa stack

v2: Added msm_dri.so (added by upstream)

v3: Fix sanitize for vl_level_supported()
    Reported-and-tested-by: Kirill Rusinov <carasin.berlogue@mail.ru>

v4: Add reference to spec
    Drop old patch nv50

Tested-by: Kirill Rusinov <carasin.berlogue@mail.ru>
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1036361
2013-12-05 10:35:54 +04:00
Igor Gnatenko f5c756cfd1 Revert "Mesa 10.0 release branch git snapshot"
This reverts commit fee912ca11.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2013-12-05 10:24:55 +04:00
Dave Airlie fee912ca11 Mesa 10.0 release branch git snapshot 2013-12-05 05:39:11 +00:00
Igor Gnatenko 66a1561bbc Merge branch 'master' into f20
Conflicts:
	.gitignore
	mesa.spec
	sources
2013-11-28 14:25:37 +04:00
Igor Gnatenko 7a867fe5e4 9.2.3 upstream release
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2013-11-14 15:41:51 +04:00
22 changed files with 1466 additions and 2636 deletions

63
.gitignore vendored
View File

@ -1,61 +1,8 @@
*.jx
*.src.rpm
.build*
mesa-20100208.tar.bz2
gl-manpages-1.0.1.tar.bz2
xdriinfo-1.0.3.tar.bz2
mesa-demos-20100529.tar.bz2
mesa-20100529.tar.bz2
mesa-20100612.tar.bz2
mesa-20100709.tar.bz2
mesa-20100720.tar.bz2
/mesa-20100824.tar.bz2
/mesa-20101020.tar.bz2
/mesa-20101108.tar.bz2
/mesa-20101118.tar.bz2
/mesa-20101129.tar.bz2
/mesa-20101214.tar.xz
/mesa-20101216.tar.xz
/mesa-20110107.tar.xz
/mesa-20110315.tar.xz
/mesa-20110327.tar.xz
/MesaLib-7.10.1.tar.bz2
/mesa-20110327.tar.xz
/mesa-20110330.tar.xz
/mesa-20110401.tar.xz
/mesa-20110412.tar.xz
/mesa-20110620.tar.xz
/mesa-20110730.tar.xz
/MesaLib-7.11.tar.bz2
/mesa-20111103.tar.xz
/mesa-20111114.tar.xz
/mesa-20111129.tar.xz
/mesa-20111214.tar.xz
/mesa-20120105.tar.xz
/mesa-20120126.tar.xz
/MesaLib-8.0.tar.bz2
/MesaLib-8.0.1.tar.bz2
/MesaLib-8.0.2.tar.bz2
/mesa-20120424.tar.xz
/mesa-20120603.tar.xz
/mesa-20120716.tar.xz
/mesa-20120717.tar.xz
/mesa-20120816.tar.xz
/mesa-20120827.tar.xz
/mesa-20120924.tar.xz
/glu-9.0.0.tar.bz2
/MesaLib-9.0.tar.bz2
/MesaLib-9.0.1.tar.bz2
/mesa-20130213.tar.xz
/MesaLib-9.1.tar.bz2
/MesaLib-9.1.1.tar.bz2
/mesa-20130508.tar.xz
/mesa-20130514.tar.xz
/mesa-20130528.tar.xz
/mesa-20130610.tar.xz
/mesa-20130723.tar.xz
/mesa-20130902.tar.xz
/mesa-20130919.tar.xz
/mesa-20131113.tar.xz
/mesa-20131114.tar.xz
/mesa-20131128.tar.xz
/mesa-*.tar.bz2
/mesa-*.tar.xz
x86_64/
results_mesa/
mesa-*/

View File

@ -0,0 +1,37 @@
From c9987fca1fa611e48f85644493edd8d5a30cf403 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar@redhat.com>
Date: Fri, 13 Dec 2019 17:42:17 +0000
Subject: [PATCH] Link with libclang-cpp
---
src/gallium/targets/opencl/meson.build | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/src/gallium/targets/opencl/meson.build b/src/gallium/targets/opencl/meson.build
index 907cc74337d..031d35b9716 100644
--- a/src/gallium/targets/opencl/meson.build
+++ b/src/gallium/targets/opencl/meson.build
@@ -43,19 +43,7 @@ libopencl = shared_library(
dependencies : [
idep_mesautil,
dep_clock, dep_dl, dep_unwind, dep_elf,
- cpp.find_library('clangCodeGen', dirs : llvm_libdir),
- cpp.find_library('clangFrontendTool', dirs : llvm_libdir),
- cpp.find_library('clangFrontend', dirs : llvm_libdir),
- cpp.find_library('clangDriver', dirs : llvm_libdir),
- cpp.find_library('clangSerialization', dirs : llvm_libdir),
- cpp.find_library('clangParse', dirs : llvm_libdir),
- cpp.find_library('clangSema', dirs : llvm_libdir),
- cpp.find_library('clangAnalysis', dirs : llvm_libdir),
- cpp.find_library('clangAST', dirs : llvm_libdir),
- cpp.find_library('clangASTMatchers', dirs : llvm_libdir),
- cpp.find_library('clangEdit', dirs : llvm_libdir),
- cpp.find_library('clangLex', dirs : llvm_libdir),
- cpp.find_library('clangBasic', dirs : llvm_libdir),
+ cpp.find_library('clang-cpp', dirs : llvm_libdir),
],
version : '@0@.0.0'.format(opencl_version),
install : true,
--
2.20.1

View File

@ -1,33 +0,0 @@
From a499fd73461257f284bd3194f9198dc484acd373 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Thu, 4 Apr 2013 17:16:22 -0400
Subject: [PATCH] llvmpipe: Work without sse2 if llvm is new enough
At least on llvm 3.2 this appears to work fine. Tested on an Athlon XP
2600+, which has sse and 3dnow but not sse2.
Signed-off-by: Adam Jackson <ajax@redhat.com>
---
src/gallium/drivers/llvmpipe/lp_screen.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 6700887..ebcf680 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -485,9 +485,10 @@ llvmpipe_create_screen(struct sw_winsys *winsys)
{
struct llvmpipe_screen *screen;
-#ifdef PIPE_ARCH_X86
- /* require SSE2 due to LLVM PR6960. */
util_cpu_detect();
+
+#if defined(PIPE_ARCH_X86) && HAVE_LLVM < 0x0302
+ /* require SSE2 due to LLVM PR6960. */
if (!util_cpu_caps.has_sse2)
return NULL;
#endif
--
1.8.2

View File

@ -1,39 +0,0 @@
From dfe652d12c62c270e00f093518a05c6966661b8a Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Mon, 6 May 2013 16:04:03 -0400
Subject: [PATCH] mesa: Be less casual about texture formats in
st_finalize_texture
Commit 62452883 removed a hunk like
if (firstImageFormat != stObj->pt->format)
st_view_format = firstImageFormat;
from update_single_texture(). This broke piglit/glx-tfp on AMD Barts
(and probably others), as that hunk was compensating for the mesa and
gallium layers disagreeing about the format.
Fix this by not ignoring the alpha channel in st_finalize_texture when
considering whether two 32-bit formats are sufficiently compatible.
Signed-off-by: Adam Jackson <ajax@redhat.com>
---
src/mesa/state_tracker/st_cb_texture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 123ed2b..0f2656c 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -1567,7 +1567,7 @@ st_finalize_texture(struct gl_context *ctx,
*/
if (stObj->pt) {
if (stObj->pt->target != gl_target_to_pipe(stObj->base.Target) ||
- !st_sampler_compat_formats(stObj->pt->format, firstImageFormat) ||
+ stObj->pt->format != firstImageFormat ||
stObj->pt->last_level < stObj->lastLevel ||
stObj->pt->width0 != ptWidth ||
stObj->pt->height0 != ptHeight ||
--
1.8.2.1

View File

@ -1,224 +0,0 @@
From 430343da5988f53ee6eedffb55ab38fa7cf64fd5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= <maraeo@gmail.com>
Date: Fri, 10 May 2013 03:42:23 +0200
Subject: [PATCH] st/mesa: handle texture_from_pixmap and other surface-based
textures correctly
There were 2 issues with it:
1) The texture format which should be used for texturing was only set
in gl_texture_image::TexFormat, which wasn't used for sampler views.
2) Textures are sometimes reallocated under some circumstances
in st_finalize_texture, which is unacceptable if the texture comes
from a window system.
The issues are resolved as follows:
1) If surface_based is true (texture_from_pixmap, etc.), store the format
in a new variable st_texture_object::surface_format.
2) Don't reallocate a surface-based texture in st_finalize_texture.
Also don't use st_ChooseTextureFormat is st_context_teximage, because
the format is dictated by the caller.
This fixes the glx-tfp piglit test.
---
src/mesa/state_tracker/st_atom_texture.c | 3 ++-
src/mesa/state_tracker/st_cb_eglimage.c | 1 +
src/mesa/state_tracker/st_cb_texture.c | 7 ++++++-
src/mesa/state_tracker/st_format.c | 35 --------------------------------
src/mesa/state_tracker/st_format.h | 4 ----
src/mesa/state_tracker/st_manager.c | 25 +++++------------------
src/mesa/state_tracker/st_texture.h | 10 +++++++--
7 files changed, 22 insertions(+), 63 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c
index 8d1250f..d79e04c 100644
--- a/src/mesa/state_tracker/st_atom_texture.c
+++ b/src/mesa/state_tracker/st_atom_texture.c
@@ -239,7 +239,8 @@ update_single_texture(struct st_context *st,
st_mesa_format_to_pipe_format(stObj->base._BufferObjectFormat);
}
else {
- view_format = stObj->pt->format;
+ view_format =
+ stObj->surface_based ? stObj->surface_format : stObj->pt->format;
/* If sRGB decoding is off, use the linear format */
if (samp->sRGBDecode == GL_SKIP_DECODE_EXT) {
diff --git a/src/mesa/state_tracker/st_cb_eglimage.c b/src/mesa/state_tracker/st_cb_eglimage.c
index b162870..a396b9e 100644
--- a/src/mesa/state_tracker/st_cb_eglimage.c
+++ b/src/mesa/state_tracker/st_cb_eglimage.c
@@ -131,6 +131,7 @@ st_bind_surface(struct gl_context *ctx, GLenum target,
stObj->width0 = ps->width;
stObj->height0 = ps->height;
stObj->depth0 = 1;
+ stObj->surface_format = ps->format;
_mesa_dirty_texobj(ctx, texObj, GL_TRUE);
}
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 123ed2b..56dbe85 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -1540,6 +1540,11 @@ st_finalize_texture(struct gl_context *ctx,
pipe_sampler_view_release(st->pipe, &stObj->sampler_view);
}
+ /* If this texture comes from a window system, there is nothing else to do. */
+ if (stObj->surface_based) {
+ return GL_TRUE;
+ }
+
/* Find gallium format for the Mesa texture */
firstImageFormat = st_mesa_format_to_pipe_format(firstImage->base.TexFormat);
@@ -1567,7 +1572,7 @@ st_finalize_texture(struct gl_context *ctx,
*/
if (stObj->pt) {
if (stObj->pt->target != gl_target_to_pipe(stObj->base.Target) ||
- !st_sampler_compat_formats(stObj->pt->format, firstImageFormat) ||
+ stObj->pt->format != firstImageFormat ||
stObj->pt->last_level < stObj->lastLevel ||
stObj->pt->width0 != ptWidth ||
stObj->pt->height0 != ptHeight ||
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index c9c6163..56f3a4a 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -1800,41 +1800,6 @@ st_QuerySamplesForFormat(struct gl_context *ctx, GLenum target,
}
-GLboolean
-st_sampler_compat_formats(enum pipe_format format1, enum pipe_format format2)
-{
- if (format1 == format2)
- return GL_TRUE;
-
- if (format1 == PIPE_FORMAT_B8G8R8A8_UNORM &&
- format2 == PIPE_FORMAT_B8G8R8X8_UNORM)
- return GL_TRUE;
-
- if (format1 == PIPE_FORMAT_B8G8R8X8_UNORM &&
- format2 == PIPE_FORMAT_B8G8R8A8_UNORM)
- return GL_TRUE;
-
- if (format1 == PIPE_FORMAT_A8B8G8R8_UNORM &&
- format2 == PIPE_FORMAT_X8B8G8R8_UNORM)
- return GL_TRUE;
-
- if (format1 == PIPE_FORMAT_X8B8G8R8_UNORM &&
- format2 == PIPE_FORMAT_A8B8G8R8_UNORM)
- return GL_TRUE;
-
- if (format1 == PIPE_FORMAT_A8R8G8B8_UNORM &&
- format2 == PIPE_FORMAT_X8R8G8B8_UNORM)
- return GL_TRUE;
-
- if (format1 == PIPE_FORMAT_X8R8G8B8_UNORM &&
- format2 == PIPE_FORMAT_A8R8G8B8_UNORM)
- return GL_TRUE;
-
- return GL_FALSE;
-}
-
-
-
/**
* This is used for translating texture border color and the clear
* color. For example, the clear color is interpreted according to
diff --git a/src/mesa/state_tracker/st_format.h b/src/mesa/state_tracker/st_format.h
index 0a1c18d..6e97dcb 100644
--- a/src/mesa/state_tracker/st_format.h
+++ b/src/mesa/state_tracker/st_format.h
@@ -70,10 +70,6 @@ size_t
st_QuerySamplesForFormat(struct gl_context *ctx, GLenum target,
GLenum internalFormat, int samples[16]);
-/* can we use a sampler view to translate these formats
- only used to make TFP so far */
-extern GLboolean
-st_sampler_compat_formats(enum pipe_format format1, enum pipe_format format2);
extern void
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index 5561af6..9e537f3 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -467,7 +467,7 @@ st_context_flush(struct st_context_iface *stctxi, unsigned flags,
static boolean
st_context_teximage(struct st_context_iface *stctxi,
enum st_texture_type tex_type,
- int level, enum pipe_format internal_format,
+ int level, enum pipe_format pipe_format,
struct pipe_resource *tex, boolean mipmap)
{
struct st_context *st = (struct st_context *) stctxi;
@@ -511,29 +511,13 @@ st_context_teximage(struct st_context_iface *stctxi,
texImage = _mesa_get_tex_image(ctx, texObj, target, level);
stImage = st_texture_image(texImage);
if (tex) {
- gl_format texFormat;
-
- /*
- * XXX When internal_format and tex->format differ, st_finalize_texture
- * needs to allocate a new texture with internal_format and copy the
- * texture here into the new one. It will result in surface_copy being
- * called on surfaces whose formats differ.
- *
- * To avoid that, internal_format is (wrongly) ignored here. A sane fix
- * is to use a sampler view.
- */
- if (!st_sampler_compat_formats(tex->format, internal_format))
- internal_format = tex->format;
-
- if (util_format_get_component_bits(internal_format,
- UTIL_FORMAT_COLORSPACE_RGB, 3) > 0)
+ gl_format texFormat = st_pipe_format_to_mesa_format(pipe_format);
+
+ if (util_format_has_alpha(tex->format))
internalFormat = GL_RGBA;
else
internalFormat = GL_RGB;
- texFormat = st_ChooseTextureFormat(ctx, target, internalFormat,
- GL_BGRA, GL_UNSIGNED_BYTE);
-
_mesa_init_teximage_fields(ctx, texImage,
tex->width0, tex->height0, 1, 0,
internalFormat, texFormat);
@@ -562,6 +546,7 @@ st_context_teximage(struct st_context_iface *stctxi,
stObj->width0 = width;
stObj->height0 = height;
stObj->depth0 = depth;
+ stObj->surface_format = pipe_format;
_mesa_dirty_texobj(ctx, texObj, GL_TRUE);
_mesa_unlock_texture(ctx, texObj);
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index da899c9..c15aeae 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -87,10 +87,16 @@ struct st_texture_object
*/
struct pipe_sampler_view *sampler_view;
- /* True if there is/was a surface bound to this texture object. It helps
- * track whether the texture object is surface based or not.
+ /* True if this texture comes from the window system. Such a texture
+ * cannot be reallocated and the format can only be changed with a sampler
+ * view or a surface.
*/
GLboolean surface_based;
+
+ /* If surface_based is true, this format should be used for all sampler
+ * views and surfaces instead of pt->format.
+ */
+ enum pipe_format surface_format;
};
--
1.8.2.1

View File

@ -0,0 +1,26 @@
From 0ec3bdb2264b491fd3f5dc4e638b4c12611ef219 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Sun, 20 Mar 2016 13:27:45 +0100
Subject: [PATCH 3/4] evergreen big endian
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
src/gallium/drivers/r600/r600_state_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index cac240e..4b620a1 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -2716,7 +2716,7 @@ uint32_t r600_translate_colorformat(enum chip_class chip, enum pipe_format forma
uint32_t r600_colorformat_endian_swap(uint32_t colorformat, bool do_endian_swap)
{
- if (R600_BIG_ENDIAN) {
+ if (0 && R600_BIG_ENDIAN) {
switch(colorformat) {
/* 8-bit buffers. */
case V_0280A0_COLOR_4_4:
--
2.7.4

View File

@ -1,28 +0,0 @@
#!/bin/sh
# Usage: ./make-git-snapshot.sh [COMMIT]
#
# to make a snapshot of the given tag/branch. Defaults to HEAD.
# Point env var REF to a local mesa repo to reduce clone time.
if [ -e /usr/bin/pxz ]; then
XZ=/usr/bin/pxz
else
XZ=/usr/bin/xz
fi
DIRNAME=mesa-$( date +%Y%m%d )
echo REF ${REF:+--reference $REF}
echo DIRNAME $DIRNAME
echo HEAD ${1:-9.2}
rm -rf $DIRNAME
git clone --depth 1 ${REF:+--reference $REF} --branch 9.2 \
git://git.freedesktop.org/git/mesa/mesa $DIRNAME
GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
| $XZ > $DIRNAME.tar.xz
# rm -rf $DIRNAME

View File

@ -1,5 +0,0 @@
#!/bin/sh
#
# usage: make-release-tarball.sh [version]
curl -O ftp://ftp.freedesktop.org/pub/mesa/$1/MesaLib-$1.tar.bz2

View File

@ -1,23 +0,0 @@
diff -up mesa-20101020/src/gallium/drivers/llvmpipe/Makefile.jx mesa-20101020/src/gallium/drivers/llvmpipe/Makefile
diff -up mesa-20101020/src/gallium/targets/dri-swrast/Makefile.jx mesa-20101020/src/gallium/targets/dri-swrast/Makefile
--- mesa-20101020/src/gallium/targets/dri-swrast/Makefile.jx 2010-10-20 15:54:57.000000000 -0400
+++ mesa-20101020/src/gallium/targets/dri-swrast/Makefile 2010-11-08 14:39:47.000000000 -0500
@@ -26,6 +26,8 @@ C_SOURCES = \
ASM_SOURCES =
+LDFLAGS += -Wl,--version-script,../version-script
+
include ../Makefile.dri
INCLUDES += \
diff -up mesa-20101020/src/gallium/targets/version-script.jx mesa-20101020/src/gallium/targets/version-script
--- mesa-20101020/src/gallium/targets/version-script.jx 2010-11-08 14:39:56.000000000 -0500
+++ mesa-20101020/src/gallium/targets/version-script 2010-11-08 14:40:36.000000000 -0500
@@ -0,0 +1,6 @@
+GALLIUM {
+ global:
+ __dri*;
+ local:
+ *;
+};

View File

@ -1,156 +0,0 @@
diff -up mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c.jx mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c
--- mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c.jx 2012-04-24 07:37:03.000000000 -0400
+++ mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c 2012-05-16 13:30:36.596312047 -0400
@@ -252,8 +252,6 @@ drisw_update_tex_buffer(struct dri_drawa
struct pipe_transfer *transfer;
char *map;
int x, y, w, h;
- int ximage_stride, line;
- int cpp = util_format_get_blocksize(res->format);
get_drawable_info(dPriv, &x, &y, &w, &h);
@@ -266,14 +264,6 @@ drisw_update_tex_buffer(struct dri_drawa
/* Copy the Drawable content to the mapped texture buffer */
get_image(dPriv, x, y, w, h, map);
- /* The pipe transfer has a pitch rounded up to the nearest 64 pixels. */
- ximage_stride = w * cpp;
- for (line = h-1; line; --line) {
- memmove(&map[line * transfer->stride],
- &map[line * ximage_stride],
- ximage_stride);
- }
-
pipe_transfer_unmap(pipe, transfer);
pipe_transfer_destroy(pipe, transfer);
}
diff -up mesa-20120424/src/glx/drisw_glx.c.jx mesa-20120424/src/glx/drisw_glx.c
--- mesa-20120424/src/glx/drisw_glx.c.jx 2012-04-24 07:37:03.000000000 -0400
+++ mesa-20120424/src/glx/drisw_glx.c 2012-05-16 13:29:25.087965268 -0400
@@ -24,6 +24,9 @@
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
#include <X11/Xlib.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
+#include <X11/extensions/XShm.h>
#include "glxclient.h"
#include <dlfcn.h>
#include "dri_common.h"
@@ -206,6 +209,96 @@ swrastPutImage(__DRIdrawable * draw, int
ximage->data = NULL;
}
+static int shm_error;
+
+static int
+shm_handler(Display *d, XErrorEvent *e)
+{
+ shm_error = 1;
+ return 0;
+}
+
+static int
+align(int value, int alignment)
+{
+ return (value + alignment - 1) & ~(alignment - 1);
+}
+
+/*
+ * Slight fast path. Short of changing how texture memory is allocated, we
+ * have two options for getting the pixels out. GetImage is clamped by the
+ * server's write buffer size, so you end up doing lots of relatively small
+ * requests (128k each or so), with two memcpys: down into the kernel, and
+ * then back up. ShmGetImage is one big blit into the shm segment (which
+ * could be GPU DMA, in principle) and then another one here.
+ */
+static Bool
+swrastShmGetImage(__DRIdrawable *read, char *data, struct drisw_drawable *prp)
+{
+ __GLXDRIdrawable *pread = &(prp->base);
+ Display *dpy = pread->psc->dpy;
+ XImage *ximage = prp->ximage;
+ unsigned long image_size = ximage->height * ximage->bytes_per_line;
+ Bool ret = 0;
+ XShmSegmentInfo seg = { 0, -1, (void *)-1, 0 };
+ int (*old_handler)(Display *, XErrorEvent *);
+
+ if (!XShmQueryExtension(dpy))
+ goto out;
+
+ /* image setup */
+ seg.shmid = shmget(IPC_PRIVATE, image_size, IPC_CREAT | 0777);
+ if (seg.shmid < 0)
+ goto out;
+
+ seg.shmaddr = shmat(seg.shmid, NULL, 0);
+ if (seg.shmaddr == (void *)-1)
+ goto out;
+
+ XSync(dpy, 0);
+ old_handler = XSetErrorHandler(shm_handler);
+ XShmAttach(dpy, &seg);
+ XSync(dpy, 0);
+ XSetErrorHandler(old_handler);
+ if (shm_error)
+ goto out;
+
+ ximage->data = seg.shmaddr;
+ ximage->obdata = &seg;
+ if (!XShmGetImage(dpy, pread->xDrawable, ximage, 0, 0, -1))
+ goto out;
+
+ /*
+ * ShmGetImage doesn't actually pay attention to ->bytes_per_line.
+ * We have to compensate for this somewhere since llvmpipe's natural
+ * tile width is 64. Do it here so we don't have to undo it with a
+ * bunch of memmove in the driver.
+ */
+ do {
+ int i;
+ char *src = ximage->data;
+ int dst_width = align(ximage->width * ximage->bits_per_pixel / 8, 256);
+
+ for (i = 0; i < ximage->height; i++) {
+ memcpy(data, src, ximage->bytes_per_line);
+ data += dst_width;
+ src += ximage->bytes_per_line;
+ }
+ } while (0);
+ ret = 1;
+
+out:
+ ximage->obdata = NULL;
+ ximage->data = NULL;
+ shm_error = 0;
+ XShmDetach(dpy, &seg);
+ if (seg.shmaddr != (void *)-1)
+ shmdt(seg.shmaddr);
+ if (seg.shmid > -1)
+ shmctl(seg.shmid, IPC_RMID, NULL);
+ return ret;
+}
+
static void
swrastGetImage(__DRIdrawable * read,
int x, int y, int w, int h,
@@ -220,11 +313,17 @@ swrastGetImage(__DRIdrawable * read,
readable = pread->xDrawable;
ximage = prp->ximage;
- ximage->data = data;
ximage->width = w;
ximage->height = h;
ximage->bytes_per_line = bytes_per_line(w * ximage->bits_per_pixel, 32);
+ /* XXX check dimensions, if any caller ever sub-images */
+ if (swrastShmGetImage(read, data, prp))
+ return;
+
+ /* shm failed, fall back to protocol */
+ ximage->data = data;
+
XGetSubImage(dpy, readable, x, y, w, h, ~0L, ZPixmap, ximage, 0, 0);
ximage->data = NULL;

View File

@ -1,201 +0,0 @@
diff -up Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h.jx Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h
--- Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h.jx 2012-02-14 18:44:00.000000000 -0500
+++ Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h 2012-03-23 13:11:40.785842579 -0400
@@ -43,6 +43,7 @@ struct winsys_handle
enum drm_conf {
/* How many frames to allow before throttling. Or -1 to indicate any number */
DRM_CONF_THROTTLE, /* DRM_CONF_INT. */
+ DRM_CONF_NOTFP,
DRM_CONF_MAX
};
diff -up Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c.jx Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c
--- Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c.jx 2012-02-14 18:44:00.000000000 -0500
+++ Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c 2012-03-23 13:11:40.785842579 -0400
@@ -642,6 +642,13 @@ static struct __DRIimageExtensionRec dri
* Backend function init_screen.
*/
+static const __DRIextension *dri_screen_extensions_no_tfp[] = {
+ &dri2FlushExtension.base,
+ &dri2ImageExtension.base,
+ &dri2ConfigQueryExtension.base,
+ NULL
+};
+
static const __DRIextension *dri_screen_extensions[] = {
&driTexBufferExtension.base,
&dri2FlushExtension.base,
@@ -671,6 +678,7 @@ dri2_init_screen(__DRIscreen * sPriv)
struct dri_screen *screen;
struct pipe_screen *pscreen;
const struct drm_conf_ret *throttle_ret = NULL;
+ const struct drm_conf_ret *notfp_ret = NULL;
screen = CALLOC_STRUCT(dri_screen);
if (!screen)
@@ -682,12 +690,16 @@ dri2_init_screen(__DRIscreen * sPriv)
sPriv->driverPrivate = (void *)screen;
pscreen = driver_descriptor.create_screen(screen->fd);
- if (driver_descriptor.configuration)
+ if (driver_descriptor.configuration) {
throttle_ret = driver_descriptor.configuration(DRM_CONF_THROTTLE);
+ throttle_ret = driver_descriptor.configuration(DRM_CONF_NOTFP);
+ }
if (throttle_ret && throttle_ret->val.val_int != -1) {
sPriv->extensions = dri_screen_extensions_throttle;
screen->default_throttle_frames = throttle_ret->val.val_int;
+ } else if (notfp_ret && notfp_ret->val.val_bool == 1) {
+ sPriv->extensions = dri_screen_extensions_no_tfp;
} else
sPriv->extensions = dri_screen_extensions;
diff -up Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c.jx Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c
--- Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c.jx 2012-02-14 18:44:00.000000000 -0500
+++ Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c 2012-03-23 13:14:37.824416888 -0400
@@ -3,6 +3,12 @@
#include "state_tracker/drm_driver.h"
#include "nouveau/drm/nouveau_drm_public.h"
+#include <xf86drm.h>
+#include <nouveau_drm.h>
+
+/* yes this is an ugly hack */
+static int nvfd = -1;
+
static struct pipe_screen *
create_screen(int fd)
{
@@ -12,9 +18,52 @@ create_screen(int fd)
if (!screen)
return NULL;
+ nvfd = fd;
+
screen = debug_screen_wrap(screen);
return screen;
}
-DRM_DRIVER_DESCRIPTOR("nouveau", "nouveau", create_screen, NULL)
+static const struct drm_conf_ret notfp_ret = {
+ .type = DRM_CONF_BOOL,
+ .val.val_bool = 1,
+};
+
+static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
+{
+ switch (conf) {
+ case DRM_CONF_NOTFP:
+ {
+ /* have to open-code to reuse the fd */
+ struct drm_nouveau_getparam g;
+ int vram;
+
+ g.param = NOUVEAU_GETPARAM_CHIPSET_ID;
+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g)))
+ return &notfp_ret; /* error? paranoia */
+
+ if (g.value < 0x50)
+ return NULL; /* nv50+ okay */
+
+ if (g.value & 0xf0 == 0x30)
+ return &notfp_ret; /* nv30 definitely horked */
+
+ g.param = NOUVEAU_GETPARAM_FB_SIZE;
+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g)))
+ return &notfp_ret; /* error? paranoia */
+
+ vram = g.value;
+ if ((vram >> 20) <= 64)
+ return &notfp_ret; /* let's say <64M is too little */
+
+ return NULL;
+ }
+
+ default:
+ break;
+ }
+ return NULL;
+}
+
+DRM_DRIVER_DESCRIPTOR("nouveau", "nouveau", create_screen, drm_configuration)
diff -up Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c.jx Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c
--- Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c.jx 2012-02-14 18:44:00.000000000 -0500
+++ Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c 2012-03-23 13:38:34.477024222 -0400
@@ -37,7 +37,11 @@
#include "main/renderbuffer.h"
#include "swrast/s_renderbuffer.h"
+#include <xf86drm.h>
+#include <nouveau_drm.h>
+
static const __DRIextension *nouveau_screen_extensions[];
+static const __DRIextension *nouveau_screen_extensions_notfp[];
static void
nouveau_destroy_screen(__DRIscreen *dri_screen);
@@ -86,6 +90,28 @@ nouveau_get_configs(void)
return (const __DRIconfig **)configs;
}
+static int
+shouldnt_tfp(int nvfd)
+{
+ /* have to open-code to reuse the fd */
+ struct drm_nouveau_getparam g;
+ int vram;
+
+ g.param = NOUVEAU_GETPARAM_CHIPSET_ID;
+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g)))
+ return 1; /* error? paranoia */
+
+ g.param = NOUVEAU_GETPARAM_FB_SIZE;
+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g)))
+ return 1; /* error? paranoia */
+
+ vram = g.value;
+ if ((vram >> 20) <= 64)
+ return 1; /* let's say 64M is too little */
+
+ return 0;
+}
+
static const __DRIconfig **
nouveau_init_screen2(__DRIscreen *dri_screen)
{
@@ -99,7 +125,6 @@ nouveau_init_screen2(__DRIscreen *dri_sc
return NULL;
dri_screen->driverPrivate = screen;
- dri_screen->extensions = nouveau_screen_extensions;
screen->dri_screen = dri_screen;
/* Open the DRM device. */
@@ -110,6 +135,11 @@ nouveau_init_screen2(__DRIscreen *dri_sc
goto fail;
}
+ if (shouldnt_tfp(dri_screen->fd))
+ dri_screen->extensions = nouveau_screen_extensions_notfp;
+ else
+ dri_screen->extensions = nouveau_screen_extensions;
+
/* Choose the card specific function pointers. */
switch (screen->device->chipset & 0xf0) {
case 0x00:
@@ -240,6 +270,12 @@ static const __DRIextension *nouveau_scr
&dri2ConfigQueryExtension.base,
NULL
};
+
+static const __DRIextension *nouveau_screen_extensions_notfp[] = {
+ &nouveau_flush_extension.base,
+ &dri2ConfigQueryExtension.base,
+ NULL
+};
const struct __DriverAPIRec driDriverAPI = {
.InitScreen = nouveau_init_screen2,

View File

@ -1,13 +0,0 @@
diff -up Mesa-8.0.1/src/mesa/state_tracker/st_manager.c.jx Mesa-8.0.1/src/mesa/state_tracker/st_manager.c
--- Mesa-8.0.1/src/mesa/state_tracker/st_manager.c.jx 2012-02-14 18:44:00.000000000 -0500
+++ Mesa-8.0.1/src/mesa/state_tracker/st_manager.c 2012-04-02 12:02:14.613964417 -0400
@@ -528,6 +528,9 @@ st_context_teximage(struct st_context_if
if (util_format_get_component_bits(internal_format,
UTIL_FORMAT_COLORSPACE_RGB, 3) > 0)
internalFormat = GL_RGBA;
+ else if (util_format_get_component_bits(internal_format,
+ UTIL_FORMAT_COLORSPACE_RGB, 0) == 5)
+ internalFormat = GL_RGB5;
else
internalFormat = GL_RGB;

View File

@ -1,13 +0,0 @@
diff -up Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
--- Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx 2012-08-31 19:33:41.000000000 -0400
+++ Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp 2012-12-20 12:58:02.115699825 -0500
@@ -715,7 +715,9 @@ Instruction::clone(ClonePolicy<Function>
{
if (!i)
i = new_Instruction(pol.context(), op, dType);
+#ifdef __GXX_RTTI
assert(typeid(*i) == typeid(*this));
+#endif
pol.set<Instruction>(this, i);

View File

@ -1,12 +0,0 @@
diff -up mesa-20130610/src/gallium/drivers/r600/evergreen_state.c.jx mesa-20130610/src/gallium/drivers/r600/evergreen_state.c
--- mesa-20130610/src/gallium/drivers/r600/evergreen_state.c.jx 2013-06-10 13:58:51.000000000 -0400
+++ mesa-20130610/src/gallium/drivers/r600/evergreen_state.c 2013-06-17 10:24:14.687160428 -0400
@@ -615,7 +615,7 @@ static uint32_t r600_translate_colorform
static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
{
- if (R600_BIG_ENDIAN) {
+ if (0 && R600_BIG_ENDIAN) {
switch(colorformat) {
/* 8-bit buffers. */

View File

@ -1,36 +0,0 @@
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 5ec1df6..a0406fc 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -306,6 +306,13 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
if (!format_desc)
return FALSE;
+ if ((bind & PIPE_BIND_RENDER_TARGET) &&
+ format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
+ format != PIPE_FORMAT_R11G11B10_FLOAT &&
+ util_format_is_float(format)) {
+ return FALSE;
+ }
+
assert(target == PIPE_BUFFER ||
target == PIPE_TEXTURE_1D ||
target == PIPE_TEXTURE_1D_ARRAY ||
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 937035e..2f5e571 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -291,6 +291,13 @@ softpipe_is_format_supported( struct pipe_screen *screen,
if (!format_desc)
return FALSE;
+ if ((bind & PIPE_BIND_RENDER_TARGET) &&
+ format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
+ format != PIPE_FORMAT_R11G11B10_FLOAT &&
+ util_format_is_float(format)) {
+ return FALSE;
+ }
+
if (sample_count > 1)
return FALSE;

View File

@ -1,27 +0,0 @@
Neither of these drivers does anything on-GPU, so, no.
diff -up mesa-20130508/src/gallium/targets/Makefile.am.jx mesa-20130508/src/gallium/targets/Makefile.am
--- mesa-20130508/src/gallium/targets/Makefile.am.jx 2013-05-08 13:23:41.000000000 -0400
+++ mesa-20130508/src/gallium/targets/Makefile.am 2013-05-08 14:59:50.897835932 -0400
@@ -78,10 +78,6 @@ endif
if HAVE_ST_XVMC
SUBDIRS += xvmc-r300
endif
-
-if HAVE_ST_VDPAU
-SUBDIRS += vdpau-r300
-endif
endif
if HAVE_GALLIUM_R600
@@ -142,10 +138,6 @@ endif
if HAVE_ST_XVMC
SUBDIRS += xvmc-softpipe
endif
-
-if HAVE_ST_VDPAU
-SUBDIRS += vdpau-softpipe
-endif
endif
if NEED_GALLIUM_LOADER

View File

@ -1,978 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 8badb72..2a3e766 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1217,8 +1217,6 @@ if test "x$enable_gbm" = xyes; then
if test "x$enable_shared_glapi" = xno; then
AC_MSG_ERROR([gbm_dri requires --enable-shared-glapi])
fi
- PKG_CHECK_MODULES([LIBKMS], [libkms], [],
- AC_MSG_ERROR([gbm needs libkms]))
fi
fi
GBM_PC_REQ_PRIV="libudev"
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 1e0f1d0..f35f857 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -923,10 +923,6 @@ struct __DRIdri2ExtensionRec {
* __DRI_IMAGE_FORMAT_NONE is for images that aren't directly usable
* by the driver (YUV planar formats) but serve as a base image for
* creating sub-images for the different planes within the image.
- *
- * R8, GR88 and NONE should not be used with createImageFormName or
- * createImage, and are returned by query from sub images created with
- * createImageFromNames (NONE, see above) and fromPlane (R8 & GR88).
*/
#define __DRI_IMAGE_FORMAT_RGB565 0x1001
#define __DRI_IMAGE_FORMAT_XRGB8888 0x1002
@@ -939,50 +935,8 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_USE_SHARE 0x0001
#define __DRI_IMAGE_USE_SCANOUT 0x0002
-#define __DRI_IMAGE_USE_CURSOR 0x0004 /* Depricated */
-
-
-/**
- * Four CC formats that matches with WL_DRM_FORMAT_* from wayland_drm.h
- * and GBM_FORMAT_* from gbm.h, used with createImageFromNames.
- *
- * \since 5
- */
-
-#define __DRI_IMAGE_FOURCC_RGB565 0x36314752
-#define __DRI_IMAGE_FOURCC_ARGB8888 0x34325241
-#define __DRI_IMAGE_FOURCC_XRGB8888 0x34325258
-#define __DRI_IMAGE_FOURCC_ABGR8888 0x34324241
-#define __DRI_IMAGE_FOURCC_XBGR8888 0x34324258
-#define __DRI_IMAGE_FOURCC_YUV410 0x39565559
-#define __DRI_IMAGE_FOURCC_YUV411 0x31315559
-#define __DRI_IMAGE_FOURCC_YUV420 0x32315559
-#define __DRI_IMAGE_FOURCC_YUV422 0x36315559
-#define __DRI_IMAGE_FOURCC_YUV444 0x34325559
-#define __DRI_IMAGE_FOURCC_NV12 0x3231564e
-#define __DRI_IMAGE_FOURCC_NV16 0x3631564e
-#define __DRI_IMAGE_FOURCC_YUYV 0x56595559
-
-
-/**
- * Queryable on images created by createImageFromNames.
- *
- * RGB and RGBA are may be usable directly as images but its still
- * recommended to call fromPlanar with plane == 0.
- *
- * Y_U_V, Y_UV and Y_XUXV all requires call to fromPlanar to create
- * usable sub-images, sampling from images return raw YUV data and
- * color conversion needs to be done in the shader.
- *
- * \since 5
- */
-
-#define __DRI_IMAGE_COMPONENTS_RGB 0x3001
-#define __DRI_IMAGE_COMPONENTS_RGBA 0x3002
-#define __DRI_IMAGE_COMPONENTS_Y_U_V 0x3003
-#define __DRI_IMAGE_COMPONENTS_Y_UV 0x3004
-#define __DRI_IMAGE_COMPONENTS_Y_XUXV 0x3005
-
+#define __DRI_IMAGE_USE_CURSOR 0x0004
+#define __DRI_IMAGE_USE_WRITE 0x0008
/**
* queryImage attributes
@@ -994,7 +948,6 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_ATTRIB_FORMAT 0x2003 /* available in versions 3+ */
#define __DRI_IMAGE_ATTRIB_WIDTH 0x2004 /* available in versions 4+ */
#define __DRI_IMAGE_ATTRIB_HEIGHT 0x2005
-#define __DRI_IMAGE_ATTRIB_COMPONENTS 0x2006 /* available in versions 5+ */
typedef struct __DRIimageRec __DRIimage;
typedef struct __DRIimageExtensionRec __DRIimageExtension;
@@ -1032,17 +985,11 @@ struct __DRIimageExtensionRec {
GLboolean (*validateUsage)(__DRIimage *image, unsigned int use);
/**
- * Unlike createImageFromName __DRI_IMAGE_FORMAT is not but instead
- * __DRI_IMAGE_FOURCC and strides are in bytes not pixels. Stride is
- * also per block and not per pixel (for non-RGB, see gallium blocks).
+ * Write data into image.
*
- * \since 5
+ * \since 4
*/
- __DRIimage *(*createImageFromNames)(__DRIscreen *screen,
- int width, int height, int fourcc,
- int *names, int num_names,
- int *strides, int *offsets,
- void *loaderPrivate);
+ int (*write)(__DRIimage *image, const void *buf, size_t count);
/**
* Create an image out of a sub-region of a parent image. This
@@ -1059,8 +1006,10 @@ struct __DRIimageExtensionRec {
*
* \since 5
*/
- __DRIimage *(*fromPlanar)(__DRIimage *image, int plane,
- void *loaderPrivate);
+ __DRIimage *(*createSubImage)(__DRIimage *image,
+ int width, int height, int format,
+ int offset, int pitch,
+ void *loaderPrivate);
};
diff --git a/src/egl/drivers/dri2/Makefile.am b/src/egl/drivers/dri2/Makefile.am
index 45f7dfa..49ec06b 100644
--- a/src/egl/drivers/dri2/Makefile.am
+++ b/src/egl/drivers/dri2/Makefile.am
@@ -30,7 +30,6 @@ AM_CFLAGS = \
$(DEFINES) \
$(LIBDRM_CFLAGS) \
$(LIBUDEV_CFLAGS) \
- $(LIBKMS_CFLAGS) \
-DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\"
noinst_LTLIBRARIES = libegl_dri2.la
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index f2cce74..7326b85 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -1093,16 +1093,68 @@ dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx,
* wl_drm format code to a description of the planes in the buffer
* that lets us create a __DRIimage for each of the planes. */
-static const struct wl_drm_components_descriptor {
- uint32_t dri_components;
+static const struct wl_drm_format_descriptor {
+ uint32_t wl_format;
EGLint components;
int nplanes;
-} wl_drm_components[] = {
- { __DRI_IMAGE_COMPONENTS_RGB, EGL_TEXTURE_RGB, 1 },
- { __DRI_IMAGE_COMPONENTS_RGBA, EGL_TEXTURE_RGBA, 1 },
- { __DRI_IMAGE_COMPONENTS_Y_U_V, EGL_TEXTURE_Y_U_V_WL, 3 },
- { __DRI_IMAGE_COMPONENTS_Y_UV, EGL_TEXTURE_Y_UV_WL, 2 },
- { __DRI_IMAGE_COMPONENTS_Y_XUXV, EGL_TEXTURE_Y_XUXV_WL, 2 },
+ struct {
+ int buffer_index;
+ int width_shift;
+ int height_shift;
+ uint32_t dri_format;
+ int cpp;
+ } planes[3];
+} wl_drm_formats[] = {
+ { WL_DRM_FORMAT_ARGB8888, EGL_TEXTURE_RGBA, 1,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 }, } },
+
+ { WL_DRM_FORMAT_XRGB8888, EGL_TEXTURE_RGB, 1,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB8888, 4 }, } },
+
+ { WL_DRM_FORMAT_YUV410, EGL_TEXTURE_Y_U_V_WL, 3,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 2, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 } } },
+
+ { WL_DRM_FORMAT_YUV411, EGL_TEXTURE_Y_U_V_WL, 3,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 2, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 } } },
+
+ { WL_DRM_FORMAT_YUV420, EGL_TEXTURE_Y_U_V_WL, 3,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 2, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 } } },
+
+ { WL_DRM_FORMAT_YUV422, EGL_TEXTURE_Y_U_V_WL, 3,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 2, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 } } },
+
+ { WL_DRM_FORMAT_YUV444, EGL_TEXTURE_Y_U_V_WL, 3,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 2, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 } } },
+
+ { WL_DRM_FORMAT_NV12, EGL_TEXTURE_Y_UV_WL, 2,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 1, 1, __DRI_IMAGE_FORMAT_GR88, 2 } } },
+
+ { WL_DRM_FORMAT_NV16, EGL_TEXTURE_Y_UV_WL, 2,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
+ { 1, 1, 0, __DRI_IMAGE_FORMAT_GR88, 2 } } },
+
+ /* For YUYV buffers, we set up two overlapping DRI images and treat
+ * them as planar buffers in the compositors. Plane 0 is GR88 and
+ * samples YU or YV pairs and places Y into the R component, while
+ * plane 1 is ARGB and samples YUYV clusters and places pairs and
+ * places U into the G component and V into A. This lets the
+ * texture sampler interpolate the Y components correctly when
+ * sampling from plane 0, and interpolate U and V correctly when
+ * sampling from plane 1. */
+ { WL_DRM_FORMAT_YUYV, EGL_TEXTURE_Y_XUXV_WL, 2,
+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_GR88, 2 },
+ { 0, 1, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } }
};
static _EGLImage *
@@ -1112,11 +1164,13 @@ dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx,
{
struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer;
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
- const struct wl_drm_components_descriptor *f;
__DRIimage *dri_image;
_EGLImageAttribs attrs;
EGLint err;
- int32_t plane;
+ uint32_t format;
+ int32_t offset, stride, plane, width, height;
+ int cpp, index;
+ const struct wl_drm_format_descriptor *f;
if (!wayland_buffer_is_drm(&buffer->buffer))
return NULL;
@@ -1135,12 +1189,17 @@ dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx,
return NULL;
}
- dri_image = dri2_dpy->image->fromPlanar(buffer->driver_buffer, plane, NULL);
+ width = buffer->buffer.width >> f->planes[plane].width_shift;
+ height = buffer->buffer.height >> f->planes[plane].height_shift;
+ format = f->planes[plane].dri_format;
+ cpp = f->planes[plane].cpp;
+ index = f->planes[plane].buffer_index;
+ offset = buffer->offset[index];
+ stride = buffer->stride[index];
- if (dri_image == NULL) {
- _eglError(EGL_BAD_PARAMETER, "dri2_create_image_wayland_wl_buffer");
- return NULL;
- }
+ dri_image = dri2_dpy->image->createSubImage(buffer->driver_buffer,
+ width, height, format,
+ offset, stride / cpp, NULL);
return dri2_create_image(disp, dri_image);
}
@@ -1301,31 +1360,24 @@ dri2_wl_reference_buffer(void *user_data, uint32_t name,
{
_EGLDisplay *disp = user_data;
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
- __DRIimage *img;
- int i, dri_components = 0;
-
- img = dri2_dpy->image->createImageFromNames(dri2_dpy->dri_screen,
- buffer->buffer.width,
- buffer->buffer.height,
- buffer->format, (int*)&name, 1,
- buffer->stride,
- buffer->offset,
- NULL);
-
- if (img == NULL)
- return;
-
- dri2_dpy->image->queryImage(img, __DRI_IMAGE_ATTRIB_COMPONENTS, &dri_components);
+ int i;
- buffer->driver_format = NULL;
- for (i = 0; i < ARRAY_SIZE(wl_drm_components); i++)
- if (wl_drm_components[i].dri_components == dri_components)
- buffer->driver_format = &wl_drm_components[i];
+ for (i = 0; i < ARRAY_SIZE(wl_drm_formats); i++)
+ if (wl_drm_formats[i].wl_format == buffer->format) {
+ buffer->driver_format = &wl_drm_formats[i];
+ break;
+ }
if (buffer->driver_format == NULL)
- dri2_dpy->image->destroyImage(img);
- else
- buffer->driver_buffer = img;
+ return;
+
+ buffer->driver_buffer =
+ dri2_dpy->image->createImageFromName(dri2_dpy->dri_screen,
+ buffer->buffer.width,
+ buffer->buffer.height,
+ __DRI_IMAGE_FORMAT_NONE, name,
+ buffer->stride[0] / 4,
+ NULL);
}
static void
@@ -1390,7 +1442,7 @@ dri2_query_wayland_buffer_wl(_EGLDriver *drv, _EGLDisplay *disp,
EGLint attribute, EGLint *value)
{
struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer;
- const struct wl_drm_components_descriptor *format;
+ const struct wl_drm_format_descriptor *format;
if (!wayland_buffer_is_drm(&buffer->buffer))
return EGL_FALSE;
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h
index ff48b02..2818e9c 100644
--- a/src/gallium/state_trackers/dri/common/dri_screen.h
+++ b/src/gallium/state_trackers/dri/common/dri_screen.h
@@ -86,7 +86,6 @@ struct __DRIimageRec {
unsigned level;
unsigned layer;
uint32_t dri_format;
- uint32_t dri_components;
void *loader_private;
};
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index 2f83dab..d7f4dd6 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -574,7 +574,6 @@ dri2_create_image(__DRIscreen *_screen,
img->level = 0;
img->layer = 0;
img->dri_format = format;
- img->dri_components = 0;
img->loader_private = loaderPrivate;
return img;
@@ -613,11 +612,6 @@ dri2_query_image(__DRIimage *image, int attrib, int *value)
case __DRI_IMAGE_ATTRIB_HEIGHT:
*value = image->texture->height0;
return GL_TRUE;
- case __DRI_IMAGE_ATTRIB_COMPONENTS:
- if (image->dri_components == 0)
- return GL_FALSE;
- *value = image->dri_components;
- return GL_TRUE;
default:
return GL_FALSE;
}
@@ -636,8 +630,6 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate)
pipe_resource_reference(&img->texture, image->texture);
img->level = image->level;
img->layer = image->layer;
- /* This should be 0 for sub images, but dup is also used for base images. */
- img->dri_components = image->dri_components;
img->loader_private = loaderPrivate;
return img;
@@ -657,76 +649,6 @@ dri2_validate_usage(__DRIimage *image, unsigned int use)
return GL_FALSE;
}
-static __DRIimage *
-dri2_from_names(__DRIscreen *screen, int width, int height, int format,
- int *names, int num_names, int *strides, int *offsets,
- void *loaderPrivate)
-{
- __DRIimage *img;
- int stride, dri_components;
-
- if (num_names != 1)
- return NULL;
- if (offsets[0] != 0)
- return NULL;
-
- switch(format) {
- case __DRI_IMAGE_FOURCC_RGB565:
- format = __DRI_IMAGE_FORMAT_RGB565;
- dri_components = __DRI_IMAGE_COMPONENTS_RGB;
- break;
- case __DRI_IMAGE_FOURCC_ARGB8888:
- format = __DRI_IMAGE_FORMAT_ARGB8888;
- dri_components = __DRI_IMAGE_COMPONENTS_RGBA;
- break;
- case __DRI_IMAGE_FOURCC_XRGB8888:
- format = __DRI_IMAGE_FORMAT_XRGB8888;
- dri_components = __DRI_IMAGE_COMPONENTS_RGB;
- break;
- case __DRI_IMAGE_FOURCC_ABGR8888:
- format = __DRI_IMAGE_FORMAT_ABGR8888;
- dri_components = __DRI_IMAGE_COMPONENTS_RGBA;
- break;
- case __DRI_IMAGE_FOURCC_XBGR8888:
- format = __DRI_IMAGE_FORMAT_XBGR8888;
- dri_components = __DRI_IMAGE_COMPONENTS_RGB;
- break;
- default:
- return NULL;
- }
-
- /* Strides are in bytes not pixels. */
- stride = strides[0] /4;
-
- img = dri2_create_image_from_name(screen, width, height, format,
- names[0], stride, loaderPrivate);
- if (img == NULL)
- return NULL;
-
- img->dri_components = dri_components;
- return img;
-}
-
-static __DRIimage *
-dri2_from_planar(__DRIimage *image, int plane, void *loaderPrivate)
-{
- __DRIimage *img;
-
- if (plane != 0)
- return NULL;
-
- if (image->dri_components == 0)
- return NULL;
-
- img = dri2_dup_image(image, loaderPrivate);
- if (img == NULL)
- return NULL;
-
- /* set this to 0 for sub images. */
- img->dri_components = 0;
- return img;
-}
-
static void
dri2_destroy_image(__DRIimage *img)
{
@@ -735,7 +657,7 @@ dri2_destroy_image(__DRIimage *img)
}
static struct __DRIimageExtensionRec dri2ImageExtension = {
- { __DRI_IMAGE, 5 },
+ { __DRI_IMAGE, 4 },
dri2_create_image_from_name,
dri2_create_image_from_renderbuffer,
dri2_destroy_image,
@@ -743,8 +665,6 @@ static struct __DRIimageExtensionRec dri2ImageExtension = {
dri2_query_image,
dri2_dup_image,
dri2_validate_usage,
- dri2_from_names,
- dri2_from_planar,
};
/*
diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
index e22c55c..f079da1 100644
--- a/src/gbm/Makefile.am
+++ b/src/gbm/Makefile.am
@@ -7,7 +7,6 @@ AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/gbm/main \
$(LIBUDEV_CFLAGS) \
- $(LIBKMS_CFLAGS) \
$(DLOPEN_CFLAGS) \
$(DEFINES)
@@ -19,7 +18,7 @@ libgbm_la_SOURCES = \
main/backend.c \
main/common.c
libgbm_la_LDFLAGS = -version-info 1:0
-libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS)
+libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(DLOPEN_LIBS)
if HAVE_EGL_PLATFORM_WAYLAND
AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index d8b1cc7..173e727 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -299,21 +299,13 @@ gbm_dri_is_format_supported(struct gbm_device *gbm,
static int
gbm_dri_bo_write(struct gbm_bo *_bo, const void *buf, size_t count)
{
+ struct gbm_dri_device *dri = gbm_dri_device(_bo->gbm);
struct gbm_dri_bo *bo = gbm_dri_bo(_bo);
- void *ptr;
- int ret;
- if (bo->bo == NULL)
- return -1;
-
- ret = kms_bo_map(bo->bo, &ptr);
- if (ret < 0)
+ if (dri->image->base.version < 4)
return -1;
- memcpy(ptr, buf, count);
-
- kms_bo_unmap(bo->bo);
- return 0;
+ return dri->image->write(bo->image, buf, count);
}
static void
@@ -322,10 +314,7 @@ gbm_dri_bo_destroy(struct gbm_bo *_bo)
struct gbm_dri_device *dri = gbm_dri_device(_bo->gbm);
struct gbm_dri_bo *bo = gbm_dri_bo(_bo);
- if (bo->image != NULL)
- dri->image->destroyImage(bo->image);
- if (bo->bo != NULL)
- kms_bo_destroy(&bo->bo);
+ dri->image->destroyImage(bo->image);
free(bo);
}
@@ -363,7 +352,7 @@ gbm_dri_bo_import(struct gbm_device *gbm,
struct gbm_dri_bo *bo;
__DRIimage *image;
unsigned dri_use = 0;
- int gbm_format;
+ int dri_format, width, height, gbm_format, stride, cpp, offset;
/* Required for query image WIDTH & HEIGHT */
if (dri->image->base.version < 4)
@@ -376,15 +365,20 @@ gbm_dri_bo_import(struct gbm_device *gbm,
struct wl_drm_buffer *wb = (struct wl_drm_buffer *) buffer;
image = wb->driver_buffer;
-
+ stride = wb->stride[0];
+ offset = wb->offset[0];
+ cpp = 4;
switch (wb->format) {
case WL_DRM_FORMAT_XRGB8888:
+ dri_format = __DRI_IMAGE_FORMAT_XRGB8888;
gbm_format = GBM_FORMAT_XRGB8888;
break;
case WL_DRM_FORMAT_ARGB8888:
+ dri_format = __DRI_IMAGE_FORMAT_ARGB8888;
gbm_format = GBM_FORMAT_ARGB8888;
break;
case WL_DRM_FORMAT_YUYV:
+ dri_format = __DRI_IMAGE_FORMAT_ARGB8888;
gbm_format = GBM_FORMAT_YUYV;
break;
default:
@@ -396,15 +390,15 @@ gbm_dri_bo_import(struct gbm_device *gbm,
case GBM_BO_IMPORT_EGL_IMAGE:
{
- int dri_format;
if (dri->lookup_image == NULL)
return NULL;
image = dri->lookup_image(dri->screen, buffer, dri->lookup_user_data);
dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_FORMAT, &dri_format);
gbm_format = gbm_dri_to_gbm_format(dri_format);
- if (gbm_format == 0)
- return NULL;
+ dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_STRIDE, &stride);
+ offset = 0;
+ cpp = 4;
break;
}
@@ -417,7 +411,13 @@ gbm_dri_bo_import(struct gbm_device *gbm,
if (bo == NULL)
return NULL;
- bo->image = dri->image->dupImage(image, NULL);
+ dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_WIDTH, &width);
+ dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_HEIGHT, &height);
+
+ bo->image = dri->image->createSubImage(image,
+ width, height, dri_format,
+ offset, stride / cpp, NULL);
+
if (usage & GBM_BO_USE_SCANOUT)
dri_use |= __DRI_IMAGE_USE_SCANOUT;
@@ -430,14 +430,10 @@ gbm_dri_bo_import(struct gbm_device *gbm,
}
bo->base.base.gbm = gbm;
+ bo->base.base.width = width;
+ bo->base.base.height = height;
+ bo->base.base.stride = stride;
bo->base.base.format = gbm_format;
-
- dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_WIDTH,
- (int*)&bo->base.base.width);
- dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HEIGHT,
- (int*)&bo->base.base.height);
- dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_STRIDE,
- (int*)&bo->base.base.stride);
dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE,
&bo->base.base.handle.s32);
@@ -454,6 +450,9 @@ gbm_dri_bo_create(struct gbm_device *gbm,
int dri_format;
unsigned dri_use = 0;
+ if (dri->image->base.version < 4 && (usage & GBM_BO_USE_WRITE))
+ return NULL;
+
bo = calloc(1, sizeof *bo);
if (bo == NULL)
return NULL;
@@ -462,33 +461,6 @@ gbm_dri_bo_create(struct gbm_device *gbm,
bo->base.base.width = width;
bo->base.base.height = height;
- if (usage & GBM_BO_USE_WRITE) {
- int ret;
- unsigned attrs[7] = {
- KMS_WIDTH, 64,
- KMS_HEIGHT, 64,
- KMS_BO_TYPE, KMS_BO_TYPE_SCANOUT_X8R8G8B8,
- KMS_TERMINATE_PROP_LIST,
- };
-
- if (!(usage & GBM_BO_USE_CURSOR_64X64))
- return NULL;
-
- if (dri->kms == NULL)
- return NULL;
-
- ret = kms_bo_create(dri->kms, attrs, &bo->bo);
- if (ret < 0) {
- free(bo);
- return NULL;
- }
-
- kms_bo_get_prop(bo->bo, KMS_PITCH, &bo->base.base.stride);
- kms_bo_get_prop(bo->bo, KMS_HANDLE, (unsigned*)&bo->base.base.handle);
-
- return &bo->base.base;
- }
-
switch (format) {
case GBM_FORMAT_RGB565:
dri_format =__DRI_IMAGE_FORMAT_RGB565;
@@ -512,6 +484,8 @@ gbm_dri_bo_create(struct gbm_device *gbm,
dri_use |= __DRI_IMAGE_USE_SCANOUT;
if (usage & GBM_BO_USE_CURSOR_64X64)
dri_use |= __DRI_IMAGE_USE_CURSOR;
+ if (usage & GBM_BO_USE_WRITE)
+ dri_use |= __DRI_IMAGE_USE_WRITE;
/* Gallium drivers requires shared in order to get the handle/stride */
dri_use |= __DRI_IMAGE_USE_SHARE;
@@ -594,21 +568,13 @@ dri_device_create(int fd)
dri->base.type = GBM_DRM_DRIVER_TYPE_DRI;
dri->base.base.name = "drm";
- kms_create(fd, &dri->kms);
- if (dri->kms == NULL)
- goto err_kms;
-
ret = dri_screen_create(dri);
- if (ret)
- goto err_dri;
+ if (ret) {
+ free(dri);
+ return NULL;
+ }
return &dri->base.base;
-
-err_dri:
- kms_destroy(&dri->kms);
-err_kms:
- free(dri);
- return NULL;
}
struct gbm_backend gbm_dri_backend = {
diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h
index 4b619a0..f404368 100644
--- a/src/gbm/backends/dri/gbm_driint.h
+++ b/src/gbm/backends/dri/gbm_driint.h
@@ -30,8 +30,6 @@
#include "gbmint.h"
-#include "libkms.h"
-
#include "common.h"
#include "common_drm.h"
@@ -43,9 +41,6 @@ struct gbm_dri_surface;
struct gbm_dri_device {
struct gbm_drm_device base;
- /* Only used for cursors */
- struct kms_driver *kms;
-
void *driver;
__DRIscreen *screen;
@@ -77,9 +72,6 @@ struct gbm_dri_bo {
struct gbm_drm_bo base;
__DRIimage *image;
-
- /* Only used for cursors */
- struct kms_bo *bo;
};
struct gbm_dri_surface {
diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h
index 7480853..782d669 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.h
+++ b/src/mesa/drivers/dri/intel/intel_regions.h
@@ -141,38 +141,13 @@ uint32_t
intel_region_get_aligned_offset(struct intel_region *region, uint32_t x,
uint32_t y);
-/**
- * Used with images created with image_from_names
- * to help support planar images.
- */
-struct intel_image_format {
- int fourcc;
- int components;
- int nplanes;
- struct {
- int buffer_index;
- int width_shift;
- int height_shift;
- uint32_t dri_format;
- int cpp;
- } planes[3];
-};
-
struct __DRIimageRec {
struct intel_region *region;
GLenum internal_format;
+ uint32_t usage;
uint32_t dri_format;
GLuint format;
uint32_t offset;
-
- /*
- * Need to save these here between calls to
- * image_from_names and calls to image_from_planar.
- */
- uint32_t strides[3];
- uint32_t offsets[3];
- struct intel_image_format *planar_format;
-
void *data;
};
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 7476ca0..b245314 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -190,59 +190,6 @@ static const struct __DRI2flushExtensionRec intelFlushExtension = {
dri2InvalidateDrawable,
};
-struct intel_image_format intel_image_formats[] = {
- { __DRI_IMAGE_FOURCC_ARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } },
-
- { __DRI_IMAGE_FOURCC_XRGB8888, __DRI_IMAGE_COMPONENTS_RGB, 1,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB8888, 4 }, } },
-
- { __DRI_IMAGE_FOURCC_YUV410, __DRI_IMAGE_COMPONENTS_Y_U_V, 3,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 },
- { 2, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 } } },
-
- { __DRI_IMAGE_FOURCC_YUV411, __DRI_IMAGE_COMPONENTS_Y_U_V, 3,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 2, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 } } },
-
- { __DRI_IMAGE_FOURCC_YUV420, __DRI_IMAGE_COMPONENTS_Y_U_V, 3,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 },
- { 2, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 } } },
-
- { __DRI_IMAGE_FOURCC_YUV422, __DRI_IMAGE_COMPONENTS_Y_U_V, 3,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 2, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 } } },
-
- { __DRI_IMAGE_FOURCC_YUV444, __DRI_IMAGE_COMPONENTS_Y_U_V, 3,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 2, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 } } },
-
- { __DRI_IMAGE_FOURCC_NV12, __DRI_IMAGE_COMPONENTS_Y_UV, 2,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 1, 1, __DRI_IMAGE_FORMAT_GR88, 2 } } },
-
- { __DRI_IMAGE_FOURCC_NV16, __DRI_IMAGE_COMPONENTS_Y_UV, 2,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
- { 1, 1, 0, __DRI_IMAGE_FORMAT_GR88, 2 } } },
-
- /* For YUYV buffers, we set up two overlapping DRI images and treat
- * them as planar buffers in the compositors. Plane 0 is GR88 and
- * samples YU or YV pairs and places Y into the R component, while
- * plane 1 is ARGB and samples YUYV clusters and places pairs and
- * places U into the G component and V into A. This lets the
- * texture sampler interpolate the Y components correctly when
- * sampling from plane 0, and interpolate U and V correctly when
- * sampling from plane 1. */
- { __DRI_IMAGE_FOURCC_YUYV, __DRI_IMAGE_COMPONENTS_Y_XUXV, 2,
- { { 0, 0, 0, __DRI_IMAGE_FORMAT_GR88, 2 },
- { 0, 1, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } }
-};
-
static __DRIimage *
intel_allocate_image(int dri_format, void *loaderPrivate)
{
@@ -302,7 +249,7 @@ intel_create_image_from_name(__DRIscreen *screen,
image = intel_allocate_image(format, loaderPrivate);
if (image->format == MESA_FORMAT_NONE)
- cpp = 1;
+ cpp = 0;
else
cpp = _mesa_get_format_bytes(image->format);
image->region = intel_region_alloc_for_handle(intelScreen,
@@ -392,7 +339,13 @@ intel_create_image(__DRIscreen *screen,
tiling = I915_TILING_NONE;
}
+ /* We only support write for cursor drm images */
+ if ((use & __DRI_IMAGE_USE_WRITE) &&
+ use != (__DRI_IMAGE_USE_WRITE | __DRI_IMAGE_USE_CURSOR))
+ return NULL;
+
image = intel_allocate_image(format, loaderPrivate);
+ image->usage = use;
cpp = _mesa_get_format_bytes(image->format);
image->region =
intel_region_alloc(intelScreen, tiling, cpp, width, height, true);
@@ -425,11 +378,6 @@ intel_query_image(__DRIimage *image, int attrib, int *value)
case __DRI_IMAGE_ATTRIB_HEIGHT:
*value = image->region->height;
return true;
- case __DRI_IMAGE_ATTRIB_COMPONENTS:
- if (image->planar_format == NULL)
- return false;
- *value = image->planar_format->components;
- return true;
default:
return false;
}
@@ -451,15 +399,12 @@ intel_dup_image(__DRIimage *orig_image, void *loaderPrivate)
}
image->internal_format = orig_image->internal_format;
- image->planar_format = orig_image->planar_format;
+ image->usage = orig_image->usage;
image->dri_format = orig_image->dri_format;
image->format = orig_image->format;
image->offset = orig_image->offset;
image->data = loaderPrivate;
-
- memcpy(image->strides, orig_image->strides, sizeof(image->strides));
- memcpy(image->offsets, orig_image->offsets, sizeof(image->offsets));
-
+
return image;
}
@@ -471,76 +416,40 @@ intel_validate_usage(__DRIimage *image, unsigned int use)
return GL_FALSE;
}
+ /* We only support write for cursor drm images */
+ if ((use & __DRI_IMAGE_USE_WRITE) &&
+ use != (__DRI_IMAGE_USE_WRITE | __DRI_IMAGE_USE_CURSOR))
+ return GL_FALSE;
+
return GL_TRUE;
}
-static __DRIimage *
-intel_create_image_from_names(__DRIscreen *screen,
- int width, int height, int fourcc,
- int *names, int num_names,
- int *strides, int *offsets,
- void *loaderPrivate)
+static int
+intel_image_write(__DRIimage *image, const void *buf, size_t count)
{
- struct intel_image_format *f = NULL;
- __DRIimage *image;
- int i, index;
-
- if (screen == NULL || names == NULL || num_names != 1)
- return NULL;
-
- for (i = 0; i < ARRAY_SIZE(intel_image_formats); i++) {
- if (intel_image_formats[i].fourcc == fourcc) {
- f = &intel_image_formats[i];
- }
- }
+ if (image->region->map_refcount)
+ return -1;
+ if (!(image->usage & __DRI_IMAGE_USE_WRITE))
+ return -1;
- if (f == NULL)
- return NULL;
+ drm_intel_bo_map(image->region->bo, true);
+ memcpy(image->region->bo->virtual, buf, count);
+ drm_intel_bo_unmap(image->region->bo);
- image = intel_create_image_from_name(screen, width, height,
- __DRI_IMAGE_FORMAT_NONE,
- names[0], strides[0],
- loaderPrivate);
-
- if (image == NULL)
- return NULL;
-
- image->planar_format = f;
- for (i = 0; i < f->nplanes; i++) {
- index = f->planes[i].buffer_index;
- image->offsets[index] = offsets[index];
- image->strides[index] = strides[index];
- }
-
- return image;
+ return 0;
}
static __DRIimage *
-intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate)
+intel_create_sub_image(__DRIimage *parent,
+ int width, int height, int dri_format,
+ int offset, int pitch, void *loaderPrivate)
{
- int width, height, offset, stride, dri_format, cpp, index, pitch;
- struct intel_image_format *f;
- uint32_t mask_x, mask_y;
__DRIimage *image;
-
- if (parent == NULL || parent->planar_format == NULL)
- return NULL;
-
- f = parent->planar_format;
-
- if (plane >= f->nplanes)
- return NULL;
-
- width = parent->region->width >> f->planes[plane].width_shift;
- height = parent->region->height >> f->planes[plane].height_shift;
- dri_format = f->planes[plane].dri_format;
- index = f->planes[plane].buffer_index;
- offset = parent->offsets[index];
- stride = parent->strides[index];
+ int cpp;
+ uint32_t mask_x, mask_y;
image = intel_allocate_image(dri_format, loaderPrivate);
- cpp = _mesa_get_format_bytes(image->format); /* safe since no none format */
- pitch = stride / cpp;
+ cpp = _mesa_get_format_bytes(image->format);
if (offset + height * cpp * pitch > parent->region->bo->size) {
_mesa_warning(NULL, "intel_create_sub_image: subimage out of bounds");
FREE(image);
@@ -581,8 +490,8 @@ static struct __DRIimageExtensionRec intelImageExtension = {
intel_query_image,
intel_dup_image,
intel_validate_usage,
- intel_create_image_from_names,
- intel_from_planar
+ intel_image_write,
+ intel_create_sub_image
};
static const __DRIextension *intelScreenExtensions[] = {

View File

@ -1,57 +0,0 @@
From 6a934ff6638352b2c28cf5a7452fed2f32853c17 Mon Sep 17 00:00:00 2001
From: Anssi Hannula <anssi.hannula@iki.fi>
Date: Sun, 5 Aug 2012 00:47:06 +0300
Subject: [PATCH] Fix undefined symbols in libOSMesa and libglapi
---
src/mapi/shared-glapi/Makefile.am | 2 +-
src/mesa/Makefile.am | 2 +-
src/mesa/drivers/osmesa/Makefile.am | 6 ++++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/mapi/shared-glapi/Makefile.am b/src/mapi/shared-glapi/Makefile.am
index 8db7688..8d41db2 100644
--- a/src/mapi/shared-glapi/Makefile.am
+++ b/src/mapi/shared-glapi/Makefile.am
@@ -6,7 +6,7 @@ include $(top_srcdir)/src/mapi/mapi/sources.mak
lib_LTLIBRARIES = libglapi.la
libglapi_la_SOURCES = $(MAPI_GLAPI_FILES)
-libglapi_la_LDFLAGS = -no-undefined
+libglapi_la_LDFLAGS = -no-undefined -pthread
include $(GLAPI)/gen/glapi_gen.mk
glapi_mapi_tmp.h : $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am
index bb70ed6..82b2f36 100644
--- a/src/mesa/Makefile.am
+++ b/src/mesa/Makefile.am
@@ -120,7 +120,7 @@ libmesa_la_SOURCES = \
$(MESA_CXX_FILES) \
$(MESA_ASM_FILES_FOR_ARCH)
-libmesa_la_LIBADD = $(top_builddir)/src/glsl/libglsl.la
+libmesa_la_LIBADD = $(top_builddir)/src/glsl/libglsl.la -ldl
libmesa_la_LDFLAGS =
libmesagallium_la_SOURCES = \
diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am
index dbee925..5a1d88e 100644
--- a/src/mesa/drivers/osmesa/Makefile.am
+++ b/src/mesa/drivers/osmesa/Makefile.am
@@ -39,6 +39,12 @@ lib@OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared -n
lib@OSMESA_LIB@_la_LIBADD = \
$(top_builddir)/src/mesa/libmesa.la \
$(top_builddir)/src/mapi/glapi/libglapi.la
+lib@OSMESA_LIB@_la_LIBTOOLFLAGS = --tag=CXX
+
+if HAVE_SHARED_GLAPI
+lib@OSMESA_LIB@_la_LDFLAGS += -L$(top_builddir)/$(LIB_DIR)
+lib@OSMESA_LIB@_la_LIBADD += -lglapi
+endif
# Provide compatibility with scripts for the old Mesa build system for
# a while by putting a link to the driver into /lib of the build tree.
--
1.7.10

2061
mesa.spec

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +0,0 @@
diff -up mesa-20130213/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.rtti mesa-20130213/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
--- mesa-20130213/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.rtti 2013-02-13 18:08:17.533677028 +1000
+++ mesa-20130213/src/gallium/drivers/nv50/codegen/nv50_ir.cpp 2013-02-13 18:08:20.496752128 +1000
@@ -716,7 +716,7 @@ Instruction::clone(ClonePolicy<Function>
if (!i)
i = new_Instruction(pol.context(), op, dType);
#ifndef NDEBUG // non-conformant assert, so this is required
- assert(typeid(*i) == typeid(*this));
+ // assert(typeid(*i) == typeid(*this));
#endif
pol.set<Instruction>(this, i);

View File

@ -1,56 +0,0 @@
#!/bin/sh
#
# usage: sanitize-tarball.sh [tarball]
if [ "x$1" = "x" ]; then
echo "Usage: sanitize-tarball.sh [tarball]"
exit 1
fi
if [ -e /usr/bin/pxz ]; then
XZ=/usr/bin/pxz
else
XZ=/usr/bin/xz
fi
dirname=$(basename $(basename "$1" .tar.bz2) .tar.xz)
tar xf "$1"
pushd $dirname
cat > src/gallium/auxiliary/vl/vl_mpeg12_decoder.c << EOF
#include "vl_mpeg12_decoder.h"
struct pipe_video_decoder *
vl_create_mpeg12_decoder(struct pipe_context *context,
enum pipe_video_profile profile,
enum pipe_video_entrypoint entrypoint,
enum pipe_video_chroma_format chroma_format,
unsigned width, unsigned height,
unsigned max_references,
bool expect_chunked_decode)
{
return NULL;
}
EOF
cat > src/gallium/auxiliary/vl/vl_decoder.c << EOF
#include "vl_decoder.h"
bool vl_profile_supported(struct pipe_screen *screen,
enum pipe_video_profile profile)
{
return false;
}
struct pipe_video_decoder *
vl_create_decoder(struct pipe_context *pipe,
enum pipe_video_profile profile,
enum pipe_video_entrypoint entrypoint,
enum pipe_video_chroma_format chroma_format,
unsigned width, unsigned height, unsigned max_references,
bool expect_chunked_decode)
{
return NULL;
}
EOF
popd
tar cf - $dirname | $XZ > $dirname.tar.xz

View File

@ -1 +1 @@
0f501dfd50b6094774b0d564d745a285 mesa-20131128.tar.xz
SHA512 (mesa-20.0.2.tar.xz) = d6ffc29bbc5b908cb0f08fa1b5a83e029b76c7b697c488a73e6bb60990a55beeb3ecdba1745868f6885ee2f660975f5debf7d2c9418e0a96e2f7049e83fd89ab