mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-24 17:35:18 +00:00
Enable Nine state-tracker (Direct3D9 API)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
9be7f50c27
commit
0e23b60307
1 changed files with 34 additions and 0 deletions
34
mesa.spec
34
mesa.spec
|
@ -18,6 +18,7 @@
|
|||
# llvm support for ppc64le is supposed to come in llvm-3.5
|
||||
%ifnarch s390 ppc ppc64le
|
||||
%define with_llvm 1
|
||||
%define with_nine 1
|
||||
%endif
|
||||
|
||||
%define min_wayland_version 1.0
|
||||
|
@ -329,6 +330,21 @@ Requires: mesa-libOpenCL%{?_isa} = %{version}-%{release}
|
|||
Mesa OpenCL development package.
|
||||
%endif
|
||||
|
||||
%if 0%{?with_nine}
|
||||
%package libd3d
|
||||
Summary: Mesa Direct3D9 state tracker
|
||||
|
||||
%description libd3d
|
||||
Mesa Direct3D9 state tracker
|
||||
|
||||
%package libd3d-devel
|
||||
Summary: Mesa Direct3D9 state tracker development package
|
||||
Requires: mesa-d3d%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description libd3d-devel
|
||||
Mesa Direct3D9 state tracker development package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
#setup -q -n Mesa-%{version}%{?snapshot}
|
||||
%setup -q -n mesa-%{git}
|
||||
|
@ -400,6 +416,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS %{?with_opencl:-frtti -fexceptions} %{!?with_ope
|
|||
--enable-dri \
|
||||
%if %{with_hardware}
|
||||
%{?with_xa:--enable-xa} \
|
||||
%{?with_nine:--enable-nine} \
|
||||
--with-gallium-drivers=%{?with_vmware:svga,}%{?with_radeonsi:radeonsi,}%{?with_llvm:swrast,r600,}%{?with_freedreno:freedreno,}r300,nouveau \
|
||||
%else
|
||||
--with-gallium-drivers=%{?with_llvm:swrast} \
|
||||
|
@ -473,6 +490,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%post libOpenCL -p /sbin/ldconfig
|
||||
%postun libOpenCL -p /sbin/ldconfig
|
||||
%endif
|
||||
%if 0%{?with_nine}
|
||||
%post libd3d -p /sbin/ldconfig
|
||||
%postun libd3d -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
%files libGL
|
||||
%defattr(-,root,root,-)
|
||||
|
@ -674,6 +695,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_libdir}/libMesaOpenCL.so
|
||||
%endif
|
||||
|
||||
%if 0%{?with_nine}
|
||||
%files libd3d
|
||||
%dir %{_libdir}/d3d/
|
||||
%{_libdir}/d3d/*.so.*
|
||||
%{_sysconfdir}/OpenCL/vendors/mesa.icd
|
||||
|
||||
%files libd3d-devel
|
||||
%{_libdir}/pkgconfig/d3d.pc
|
||||
%{_includedir}/d3dadapter/
|
||||
%{_libdir}/d3d/*.so
|
||||
%endif
|
||||
|
||||
# Generate changelog using:
|
||||
# git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)"
|
||||
%changelog
|
||||
|
@ -681,6 +714,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
- 10.4.0
|
||||
- Enable VA state-tracker
|
||||
- Remove dropped Gallium EGL state tracker
|
||||
- Enable Nine state-tracker (Direct3D9 API)
|
||||
|
||||
* Fri Dec 12 2014 Adam Jackson <ajax@redhat.com> 10.3.5-2
|
||||
- Rebuild for LLVM 3.5
|
||||
|
|
Loading…
Reference in a new issue