- 13 Apr, 2016 15 commits
-
-
Rhys Kidd authored
Mesa has not had a src/mesa/shader/ folder since Mesa 7.9 removed it in October 2010, as part of a revised GLSL compiler written by Intel. Remove doxygen/shader.doxy and consequential changes made throughout. In addition to removing an unnecessary Doxygen doxyfile, this change also avoids a bug in the consolidated Doxygen output caused by doxygen/shader.doxy inadvertently overwriting doxygen/swrast.tag via its GENERATE_TAGFILE setting. This bug depended upon the specific order each *.tag was built. Signed-off-by:
Rhys Kidd <rhyskidd@gmail.com> Acked-by:
Emil Velikov <emil.velikov@collabora.com>
-
Marek Olšák authored
Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com>
-
Jose Fonseca authored
Leverage nearbyintif function, which should be available on all C99 implementations. Trivial.
-
Roland Scheidegger authored
We used to use sse roundps intrinsic directly, but switched to use the llvm intrinsics for rounding with e4f01da1. However, llvm semantics follows standard math lib round function which is specced to do roundNearestAwayFromZero but we really want roundNearestEven (moreoever, using round generates atrocious code since the cpu can't do it directly and it results in scalar calls to libm __roundf). So, use llvm.nearbyint instead, which does exactly the right thing, and even has the advantage of being available with llvm 3.3 too. (I've verified it actually generates a roundps instruction with llvm 3.3.) This fixes https://bugs.freedesktop.org/show_bug.cgi?id=94909Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Pierre Moreau authored
This fixes a compile error while building Nouveau with C++11 enabled (and glibc >= 2.23). This happens if SWR is enabled, as it forces C++11. Signed-off-by:
Pierre Moreau <pierre.morrow@free.fr> Signed-off-by:
Jose Fonseca <jfonseca@vmware.com> https://bugs.freedesktop.org/show_bug.cgi?id=94907
-
Jose Fonseca authored
libasan is never linked to shared objects (which doesn't go well with -z,defs). It must either be linked to the main executable, or (more practically for OpenGL drivers) be pre-loaded via LD_PRELOAD. Otherwise works. I didn't find anything with llvmpipe. I suspect the fact that the JIT compiled code isn't instrumented means there are lots of errors it can't catch. But for non-JIT drivers, the Address/Leak Sanitizers seem like a faster alternative to Valgrind. Usage (Ubuntu 15.10): scons asan=1 libgl-xlib export LD_LIBRARY_PATH=$PWD/build/linux-x86_64-debug/gallium/targets/libgl-xlib LD_PRELOAD=libasan.so.2 any-opengl-application Acked-by:
Roland Scheidegger <sroland@vmware.com>
-
Kenneth Graunke authored
This is supposed to be INVALID_OPERATION in ES. We already did this for the fv/iv variants, but not Iiv/Iuv, which are new in ES 3.2 (or extensions). Fixes: ES31-CTS.texture_border_clamp.samplerparameteri_non_gen_sampler_error Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Jose Fonseca authored
Courtesy of address sanitizer. [airlied: free buffers as well] Reviewed-by:
Roland Scheidegger <sroland@vmware.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Edward O'Callaghan authored
Signed-off-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Eric Anholt authored
Fixes rendering failures in glmark2's refract and bump:render-mode=high-poly demos, and partially in its terrain demo.
-
Thomas Hindoe Paaboel Andersen authored
Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Thomas Hindoe Paaboel Andersen authored
Increase r to four channels as rgba is written to it Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Tim Rowley authored
Reviewed-by:
George Kyriazis <george.kyriazis@intel.com>
-
Tim Rowley authored
Reviewed-by:
George Kyriazis <george.kyriazis@intel.com>
-
Nicolai Hähnle authored
This is the last necessary bit for OpenGL 4.2 support. All driver-specific functionality has already been implemented as part of extensions. Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
- 12 Apr, 2016 25 commits
-
-
Iurie Salomov authored
Signed-off-by:
Iurie Salomov <iurcic@gmail.com> Reviewed-by:
Julien Isorce <j.isorce@samsung.com>
-
Jason Ekstrand authored
Reported-by:
Mark Janes <mark.a.janes@intel.com> Reviewed-by:
Eduardo Lima Mitev <elima@igalia.com>
-
Marek Olšák authored
For some reason unknown to me, SI hangs if the event is written after CONTEXT_CONTROL.
-
Kenneth Graunke authored
This is kind of a hack. We currently track precise requirements by decorating ir_variables. Propagating or grafting the RHS of an assignment to a precise value into some other expression tree can lose those decorations. In the long run, it might be better to replace these ir_variable decorations with an "exact" decoration on ir_expression nodes, similar to what NIR does. In the short run, this is probably good enough. It preserves enough information for glsl_to_nir to generate "exact" decorations, and NIR will then handle optimizing these expressions reasonably. Fixes ES31-CTS.gpu_shader5.precise_qualifier. v2: Drop invariant handling, as it shouldn't be necessary (caught by Jason Ekstrand). Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Kristian Høgsberg Kristensen authored
Copy and paste error in commit eafeb8db: i965/tiled_memcpy: Unroll bytes==64 case. Signed-off-by:
Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Kristian Høgsberg Kristensen authored
ARB_program_interface_query requires that we add struct fields recursively down to basic types. Fixes 52 struct test cases in dEQP-GLES31.functional.program_interface_query.* Signed-off-by:
Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Kristian Høgsberg Kristensen authored
No functional change here, but this now lets us recurse throught structs in add_shader_variable(). Signed-off-by:
Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Kristian Høgsberg Kristensen authored
This lets us pass in the absolution location of a variable instead of computing it in add_shader_variable() based on variable location and bias. This is in preparation for recursing into struct variables. Signed-off-by:
Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Kristian Høgsberg Kristensen authored
This consolidates the combination of create_shader_variable() and add_program_resource() into a new helper function. No functional difference, but we'll expand add_shader_variable() in the next few commits. Signed-off-by:
Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Matt Turner authored
Reviewed-by:
Roland Scheidegger <sroland@vmware.com>
-
Roland Scheidegger authored
The existing code uses SSSE3, and because it isn't compiled in a separate file compiled with that, it is usually not used (that, of course, could be fixed...), whereas SSE2 is always present with 64-bit builds. This should be pretty much as fast as the pshufb version, albeit those code paths aren't really used on chips without llc in any case. v2: fix andnot argument order, add comments v3: use pshuflw/hw instead of shifts (suggested by Matt Turner), cut comments v4: [mattst88] Rebase Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Matt Turner authored
This will make adding SSE2 code a lot cleaner. Reviewed-by:
Roland Scheidegger <sroland@vmware.com>
-
Matt Turner authored
Replaces four byte loads and four byte stores with a load, bswap, rotate, store; or a movbe, rotate, store. Reviewed-by:
Roland Scheidegger <sroland@vmware.com>
-
Nicolai Hähnle authored
This was triggered by dEQP-GLES3.functional.vertex_array_objects.all_attributes Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Move the buffer resource extraction code out into its own function. Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-
Nicolai Hähnle authored
This will be re-used for shader buffers. Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Edward O'Callaghan <eocallaghan@alterapraxis.com>
-