- 18 Nov, 2014 13 commits
-
-
Vinson Lee authored
Signed-off-by:
Vinson Lee <vlee@freedesktop.org>
-
Axel Davy authored
DRI_PRIME setups have different issues due the lack of dma-buf fences support in the drivers. For DRI3 DRI_PRIME, a race can appear, making tearings visible, or worse showing older content than expected. Until dma-buf fences are well supported (and by all drivers), an alternative is to send the buffers to the server only when rendering has finished. Since waiting the rendering has finished in the main thread has a performance impact, this patch uses an additional thread to offload the wait and the sending of the buffers to the server. Acked-by:
Jose Fonseca <jfonseca@vmware.com> Reviewed-by:
David Heidelberg <david@ixit.cz> Signed-off-by:
Axel Davy <axel.davy@ens.fr>
-
Axel Davy authored
Implements vblank_mode and throttling, which allows us change default ratio between framerate and input lag. Acked-by:
Jose Fonseca <jfonseca@vmware.com> Signed-off-by:
David Heidelberg <david@ixit.cz> Signed-off-by:
Axel Davy <axel.davy@ens.fr>
-
Joakim Sindholt authored
Work of Joakim Sindholt (zhasha) and Christoph Bumiller (chrisbmr). DRI3 port done by Axel Davy (mannerov). v2: - nine_debug.c: klass extended from 32 chars to 96 (for sure) by glennk - Nine improvements by Axel Davy (which also fixed some wine tests) - by Emil Velikov: - convert to static/shared drivers - Sort and cleanup the includes - Use AM_CPPFLAGS for the defines - Add the linker garbage collector - Restrict the exported symbols (think llvm) v3: - small nine fixes - build system improvements by Emil Velikov v4: [Emil Velikov] - Do no link against libudev. No longer needed. Acked-by:
Jose Fonseca <jfonseca@vmware.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Axel Davy <axel.davy@ens.fr> Signed-off-by:
David Heidelberg <david@ixit.cz>
-
Christoph Bumiller authored
v3: thanks to Brian, improved coding style, also glennk helped spot few things (unsigned -> int, two constify) v4: thanks Ilia improved function, dropped u_box_clip_3d v5: incorporated rest of Gregor proposed changes,clean ups v6: u_box_clip_2d simplify proposed by Ilia Mirkin Acked-by:
Jose Fonseca <jfonseca@vmware.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Signed-off-by:
David Heidelberg <david@ixit.cz>
-
Christoph Bumiller authored
At this moment we use only zero or positive values. v2: Implement it for also for Solaris, MSVC assembly and enable for other combinations. v3: Replace MSVC assembly by assert + warning during compilation v4: remove inc and dec with return for MSVC assembly Acked-by:
Jose Fonseca <jfonseca@vmware.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by:
David Heidelberg <david@ixit.cz>
-
Christoph Bumiller authored
Implement pipe_loader_sw_probe_wrapped which allows to use the wrapped software renderer backend when using the pipe loader. v2: - remove unneeded ifdef - use GALLIUM_PIPE_LOADER_WINSYS_LIBS - check for CALLOC_STRUCT thanks to Emil Velikov Acked-by:
Jose Fonseca <jfonseca@vmware.com> Signed-off-by:
David Heidelberg <david@ixit.cz>
-
Christoph Bumiller authored
Acked-by:
Jose Fonseca <jfonseca@vmware.com> Signed-off-by:
David Heidelberg <david@ixit.cz>
-
Christoph Bumiller authored
v2: moved in in same order as in p_shader_tokens (thanks Brian) Acked-by:
Jose Fonseca <jfonseca@vmware.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Signed-off-by:
David Heidelberg <david@ixit.cz>
-
Dave Airlie authored
Some of the geom shader tests produce an empty vertex shader, on cayman we'd crash in the finaliser because last_cf was NULL. cayman doesn't need the NOP workaround, so if the code arrives here with no last_cf, just emit an END. fixes crashes in a bunch of piglit geom shader tests. Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Glenn Kennard <glenn.kennard@gmail.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
It appears on cayman the TG4 outputs were reordered. This fixes a lot of piglit tests. Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Glenn Kennard <glenn.kennard@gmail.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
There is no need to assign dst here, just use the chan from j Pointed out by glennk. Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
This fixes tests/spec/glsl-1.10/execution/fs-op-assign-mult-ivec2-ivec2-overwrite.shader_test. hopeful fix for fd.o bug 85376 Reported-by: ghallberg Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Glenn Kennard <glenn.kennard@gmail.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 17 Nov, 2014 3 commits
-
-
Brian Paul authored
The sampler_array_size field was added by "mesa/st: add support for dynamic sampler offsets". But the field wasn't getting copied in the get_pixel_transfer_visitor() or get_bitmap_visitor() functions. The count_resources() function then didn't properly compute the glsl_to_tgsi_visitor::samplers_used bitmask. Then, we didn't declare all the sampler registers in st_translate_program(). Finally, we asserted when we tried to emit a tgsi ureg src register with File = TGSI_FILE_UNDEFINED. Add the missing assignments and some new assertions to catch the invalid register sooner. Cc: "10.3, 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Brian Paul authored
Fix oversights from the "add a window_space option to the passthrough vertex shader" patch. Reviewed-by:
Jakob Bornecrantz <jakob@vmware.com>
-
Michel Dänzer authored
Using the asynchronous DMA engine for multi-dimensional operations seems to cause random GPU lockups for various people. While the root cause for this might need to be fixed in the kernel, let's disable it for now. Before re-enabling this, please make sure you can hit all newly enabled paths in your testing, preferably with both piglit and real world apps, and get in touch with people on the bug reports below for stability testing. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85647 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83500 Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Grigori Goronzy <greg@chown.ath.cx>
-
- 16 Nov, 2014 17 commits
-
-
Vinson Lee authored
GLXBadProfileARB and X_GLXCreateContextAtrribsARB require glproto >= 1.4.13. These symbols were added in commit d5d41112 "st/xlib: Generate errors as specified." Signed-off-by:
Vinson Lee <vlee@freedesktop.org> Cc: "10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Jose Fonseca authored
No change in behavior.
-
Jose Fonseca authored
Unfortunately no LLVM type was generated for pipe_viewport_state -- it was being treated as a single floating point array --, so llvmpipe (and any driver that relies on draw/llvm) got totally busted.
-
Jose Fonseca authored
Trivial.
-
Jose Fonseca authored
Redundant. Should fix ttps://bugs.freedesktop.org/show_bug.cgi?id=86330
-
Emil Velikov authored
... or autotools will fail to pick them up for the distribution tarball. Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Emil Velikov authored
We were missing a few files - The version scripts - Android & scons build scripts - A few headers. Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Emil Velikov authored
- Add all headers into Makefile.sources - Don't forget the target-helpers - Add the python scripts & the formats table/list (csv) - Temporary add vl/vl_winsys_dri.c to EXTRA_DIST until we rework the way VL is build. - Add the following to EXTRA_DIST - they are included via the generated u_indices_gen.c thus we should not add them to *SOURCES. indices/u_indices.c indices/u_unfilled_indices.c XXX: Should we nuke gallivm/f.cpp ? It seems that no-one is using it. v2: Rebase Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Emil Velikov authored
Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Emil Velikov authored
Drop the unneeded subdir-objects. Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Thierry Reding authored
The DRM_IOCTL_MODE_CREATE_DUMB (and others) IOCTL isn't very rigorously specified, which has the effect that some kernel drivers do not consider the .pitch and .size fields of struct drm_mode_create_dumb outputs only. Instead they will use these as lower bounds and overwrite them only if the values that they compute are larger than what userspace provided. This works if and only if userspace initializes the fields explicitly to either 0 or some meaningful value. However, if userspace just leaves the values uninitialized and the struct drm_mode_create_dumb is allocated on the stack for example, the driver may try to overallocate buffers. Fortunately most userspace does zero out the structure before passing it to the IOCTL, but there are rare exceptions. Mesa is one of them. In an attempt to rectify this situation, kernel drivers are being updated to not use the .pitch and .size fields as inputs. However in order to fix the issue with older kernels, make sure that Mesa always zeros out the structure as well. Future IOCTLs should be more rigorously defined so that structures can be validated and IOCTLs rejected if output fields aren't set to zero. Signed-off-by:
Thierry Reding <treding@nvidia.com> Reviewed-by:
Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Marek Olšák authored
Almost all drivers ignore them.
-
Marek Olšák authored
Required by Nine. Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Tested-by:
Nick Sarnie <commendsarnex@gmail.com>
-
Marek Olšák authored
Tested-by:
Nick Sarnie <commendsarnex@gmail.com>
-
Marek Olšák authored
Not testable by OpenGL. Required by Nine. This is an example of how to implement a piglit-like test using gallium only.
-
Marek Olšák authored
Tested-by:
Nick Sarnie <commendsarnex@gmail.com>
-
Marek Olšák authored
Tested-by:
Nick Sarnie <commendsarnex@gmail.com>
-
- 15 Nov, 2014 7 commits
-
-
Rob Clark authored
Support to restore gmem (tile buffer) (in case it wasn't glClear'd). Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Rob Clark authored
Addition of color fmt bitfield to this register (compared to a3xx) means we need to re-emit if either prog or framebuffer state is dirty. Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Emil Velikov authored
This reverts commit 8d3f7393. In the last commit we've updated our check to determine if the actual code is buildable, rather than if the compiler acknowledges the option. I.e. did anyone provide -mno-sse4.1 vs is my compiler too old. Now this code will never be attemped to be build, in both cases. Confirmed by building mesa with export CFLAGS='-march=native -mno-sse4.1' ./configure && make Tested-by:
David Heidelberg <david@ixit.cz> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Emil Velikov authored
So when checking/building sse code we have three possibilities: 1 Old compiler, throws an error when using -msse* 2 New compiler, user disables sse* (-mno-sse*) 3 New compiler, user doesn't disable sse The original code, added code for #1 but not #2. Later on we patched around the lack of handling #2 by wrapping the code in __SSE4_1__. Yet it lead to a missing/undefined symbol in case of #1 or #2, which might cause an issue for #2 when using the i965 driver. A bit later we "fixed" the undefined symbol by using #1, rather than updating it to handle #2. With this commit we set things straight :) To top it all up, conventions state that in case of conflicting (-enable-foo -disable-foo) options, the latter one takes precedence. Thus we need to make sure to prepend -msse4.1 to CFLAGS in our test. v2: Clean the #includes. Suggested by Ilia, Matt & Siavash. Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Tested-by:
David Heidelberg <david@ixit.cz> Tested-by:
Siavash Eliasi <siavashserver@gmail.com> Reviewed-by:
Matt Turner <mattst88@gmail.com> Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Ilia Mirkin authored
This enables the ARB_clip_control extension. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.4" <mesa-stable@lists.freedesktop.org>
-
Rob Clark authored
Very initial support. Basic stuff working (es2gears, es2tri, and maybe about half of glmark2). Expect broken stuff. Still missing: mem->gmem (restore), queries, mipmaps (blob segfaults!), hw binning, etc. Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Rob Clark authored
Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-