Chris Forbes
a30cc28829
mesa: allow tess stages in glUseProgramStages
...
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Fabian Bieler
6435b2909e
mesa: support tess stages in glGetProgramPipelineiv
...
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Marek Olšák
5852b5d2fa
mesa: take tessellation into account when validating GS input primitive mode
...
I've reported the bug in the Khronos bugzilla.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Chris Forbes
8e758c3a74
mesa: allow drawing of patch primitives
...
Cosmetic changes and fixes by Marek.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Marek Olšák
fa602c2088
mesa: add _mesa_has_tessellation
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Fabian Bieler
a894ed8293
mesa: add misc tessellation shader support
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Fabian Bieler
78d3054980
mesa: add tessellation shader init functions.
...
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Chris Forbes
bb97cc66c1
mesa: add tessellation shader state and limits
...
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:25 +02:00
Fabian Bieler
a2af956963
mesa: add tessellation shader enums
...
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:24 +02:00
Fabian Bieler
df3860a3e3
mesa: add tessellation shader structs
...
Marek: remove unused members, cleanup
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:24 +02:00
Fabian Bieler
e2b59a39cb
mapi: add ARB_tessellation_shader
...
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:24 +02:00
Marek Olšák
5ead448719
drirc: drop support for Heaven 3.0, fixes tessellation in 4.0
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2015-07-23 00:59:24 +02:00
Marek Olšák
6b37643b82
winsys/radeon: implement buffer_unmap
...
This has been a no-op due to performance concerns. From now on, drivers
should decide when they don't want to unmap, not the winsys.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-23 00:59:24 +02:00
Marek Olšák
5e3974338e
gallium/radeon: remove buffer_unmap calls that can potentially decrease perf
...
buffer_unmap is currently a no-op on radeon and done correctly on amdgpu.
I plan to fix it for radeon, but before that, all occurences of buffer_unmap
that can negatively affect performance in the future must be removed.
There are 2 reasons for removing buffer_unmap calls:
- There is a likelihood that buffer_map will be called again, so we don't
want to unmap yet.
- The buffer is being released, which automatically unmaps it.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-23 00:59:24 +02:00
Marek Olšák
0aa2446e2c
radeonsi: remove switch statement in si_create_context
...
and make si_init_config static
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-23 00:59:24 +02:00
Marek Olšák
46b2b3bda8
radeonsi: don't change pipe_resource in resource_copy_region
...
Copied from r600g. pipe_resource can be shared by multiple threads, so we
shouldn't change it.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-23 00:59:24 +02:00
Marek Olšák
50a957c5de
radeonsi: upload shader rodata after updating scratch relocations
...
Cc: 10.5 10.6 <mesa-stable@lists.freedesktop.org >
Reviewed-by: Tom Stellard <thomas.stellard@amd.com >
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-23 00:59:24 +02:00
Marek Olšák
e4d738f6c6
radeonsi: remove redundant parameter in si_shader_binary_read
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com >
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-23 00:59:23 +02:00
Marek Olšák
2369dc8382
cso: eliminate some sampler function wrappers
2015-07-23 00:59:23 +02:00
Marek Olšák
68dcbf4c46
gallium/tests: use cso_set_samplers
2015-07-23 00:59:23 +02:00
Marek Olšák
85f5722f70
gallium/util: use cso_set_samplers
2015-07-23 00:59:23 +02:00
Marek Olšák
5ef1782b9f
st/mesa: use cso_set_samplers
2015-07-23 00:59:23 +02:00
Marek Olšák
4ef7d93a94
cso: remove clip state handling
...
There is no need for this.
v2: handle redundant clip state changes in st/mesa
2015-07-23 00:59:21 +02:00
Marek Olšák
b7492a1f45
cso: only allow saving and restoring fragment sampler states
2015-07-22 23:56:00 +02:00
Marek Olšák
4e8bbed926
cso: drop inefficient checking for redundant sampler state changes
...
Drivers can do this better, because they can skip redundant state changes
at per-slot granularity.
2015-07-22 23:56:00 +02:00
Marek Olšák
3639d66a47
cso: only allow saving and restoring fragment sampler views
...
Not needed for other shader stages.
2015-07-22 23:56:00 +02:00
Marek Olšák
2d8213bfa9
gallium/util: improve dump functions
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-07-22 23:56:00 +02:00
Marek Olšák
8141b4cee5
tgsi: allow dumping to a file directly
2015-07-22 23:56:00 +02:00
Marek Olšák
d082c53249
st/mesa: don't call st_validate_state in BlitFramebuffer
...
None of the draw states are used here.
This fixes a crash in piglit: ext_framebuffer_blit/blit-early
Calling st_manager_validate_framebuffers is the minimum requirement here.
Cc: mesa-stable@lists.freedesktop.org
2015-07-22 23:56:00 +02:00
Marek Olšák
2f50fc040c
docs/relnotes: document new EGL extensions and EGL 1.5
2015-07-22 23:56:00 +02:00
Anatoli Antonovitch
1828357629
st/dri: enable 3D textures and sRGB colorspace for EGL
...
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
2015-07-22 23:56:00 +02:00
Marek Olšák
4f57ccd02d
egl,dri_interface: use DRI2rendererQueryExtension to enable 3D textures & sRGB
...
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-07-22 23:56:00 +02:00
Marek Olšák
c2c2e9ab60
egl: implement EGL_KHR_gl_colorspace (v2)
...
v2: add missing "break"
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-07-22 23:56:00 +02:00
Marek Olšák
956ebf41ac
st/dri: expose sRGB visuals (v2)
...
v2: The fix for the darkness in Ubuntu Unity is in the hunk
with the 4-line comment.
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-07-22 23:56:00 +02:00
Dylan Baker
b06a6852ff
glapi: fix argument parsing in glX_proto_recv.py
...
One of the plugins I use with vim "helpfully" added an underscore to the
front of mode for kicks.
Obviously this isn't a feature used very often because it's been broken
since d986cb7c70 (since May 20th), and no one has noticed.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
461b4b103f
egl: android: remove DRM_GRALLOC_TOP hack
...
Now that the drm_gralloc module exports the correct includes we can get
rid of this hack.
Cc: Chih-Wei Huang <cwhuang@android-x86.org >
Cc: Eric Anholt <eric@anholt.net >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Tested-by: Varad Gautam <varadgautam@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
e2ef659c2e
egl: remove old makefile.sources
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
1040a861a8
android: rework the EGL build
...
See previous two commits for details.
v2: Don't forget git mv, bring back DRM_GRALLOC_TOP. Spotted by Varad.
Cc: Chih-Wei Huang <cwhuang@android-x86.org >
Cc: Eric Anholt <eric@anholt.net >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
Tested-by: Varad Gautam <varadgautam@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
e7e29189e2
scons: rework the EGL build
...
The scons equivalent of the previous commit - just fold the almost
identical driver + main Sconscripts.
Cc: Alexander von Gluck IV <kallisti5@unixzen.com >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
e342039612
automake: rework the EGL build
...
Simplify things by merging the two makefiles. This way we can combine
the duplicated HAVE_PLATFORM_ checks, and build the library without
having a separate static library.
v2: use $() when referencing variables, use correct define (Matt)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
0399d7ab3f
gbm: do not build intermittent libgbm_dri static library
...
The only user of it (libgbm.la) immediately links it. Just build it
directly into the library.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
8e5e18ac28
egl: automake: remove unused HAVE_XCB_DRI2 define
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
a1202807dc
egl: remove unused _EGL_DRIVER_SEARCH_DIR define
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
0b915856ba
egl/haiku: remove unused DEFAULT_DRIVER_DIR define
...
Cc: Alexander von Gluck IV <kallisti5@unixzen.com >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:27 +01:00
Emil Velikov
c17e01748e
egl: remove final Windows specific workaround
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:26 +01:00
Emil Velikov
3593f37fd7
egl: remove custom string functions
...
Support for Windows has been removed for a while now, and virtually
every POSIX compliant system provides strcasecmp, strdup and snprintf.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:26 +01:00
Emil Velikov
d62879565a
egl: remove _EGL_PLATFORM_WINDOWS enum
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:26 +01:00
Emil Velikov
32debea337
egl: remove final references of platform_null
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:26 +01:00
Emil Velikov
dc1ece3748
egl: remove flatten HAVE_SHARED_GLAPI
...
It is simply not possible to use the dri backend without shared glapi,
as the alternative provider (libGL) is not always present. We have fixed
the build for a while now, so we can rip this out.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-07-22 16:35:26 +01:00
Emil Velikov
78674631a2
egl: remove the non-haiku scons build
...
It has been broken since 2011 with commit c98ea26e16b(egl: Make
egl_dri2 and egl_glx built-in drivers.). When the backends got merged
into the main library each entry point was guarded by a
_EGL_BUILT_IN_DRIVER_* define.
As the define was missing, the linker kindly removed the whole of the
dri2 backend, thus we did not notice any errors due to the unresolved
link to xcb and friends.
Cc: Chia-I Wu <olv@lunarg.com >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Jose Fonseca <jfonseca@vmware.com >
2015-07-22 16:35:26 +01:00