- Jan 07, 2019
-
-
Lionel Landwerlin authored
-
Lionel Landwerlin authored
-
- Oct 10, 2018
-
-
Eric Engestrom authored
Compiler wasn't happy about strncpy() depending on the source's length and not the target's, but this whole thing can be simplified by simply using asprintf() (which is already used in this file, so no #include necessary). run.c: In function ‘main._omp_fn.0’: run.c:964:21: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(out_filename, current_shader_name, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ strlen(current_shader_name) + 1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-
- Jul 27, 2018
-
-
Kenneth Graunke authored
Modern kernels support I915_PARAM_HAS_CONTEXT_ISOLATION, which allows us to whack certain context registers with impunity. One of those is INSTPM/CS_DEBUG_MODE2, which controls whether Constant Buffer 0 is relative to dynamic state base address, or a general GPU address. If it's relative (the default), we can only push 3 ranges of UBOs. If it's absolute, we can push 4. So this affects our shader output. Follow the behavior of modern kernels and allow us to push all 4 ranges. Tested-by: Ian Romanick <ian.d.romanick@intel.com>
-
- Jul 20, 2018
-
-
Timothy Arceri authored
This does two things: 1. Allows cross shader optimisations to be preformed on SSO programs that contain more than one stage (seems like I don't have any of these in my shader-db collection). 2. Allows us to write compilation errors to stderr. With this change I discovered a Deus Ex: MD shader was failing to compile (I've reported it to Feral). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
- Jun 18, 2018
-
-
Optional binding of variables can be processed before linking shader objects for creating shader program. It is activated by adding lines with a keyword "BindAttribLoc" followed by name and index as, "BindAttribLoc name_str1 <index1>" For example, [require] ...... BindAttrbLoc vertex 1 BindAttrbLoc coord 2 BindAttrbLoc col 3 This makes the shader-db run glBindAttribLocation(p, 1, "vertex"); glBindAttribLocation(p, 2, "coord"); glBindAttribLocation(p, 3, "col"); before glLinkProgram() to include these binding info in binary shader program. v2: get_shaders returns its own head of list for binding variables instead of using a global head to support parallel processing of multiple shader_tests Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
-
- Jun 08, 2018
-
-
Kenneth Graunke authored
I don't think anybody is using this script with any other driver. Also take a $DEBUGGER variable so you can do: $ DEBUGGER='gdb -q --args' ./intel_run shaders Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-
Kenneth Graunke authored
Otherwise our fake GEM bo mappings don't work. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-
- May 23, 2018
-
-
With option '-b', shader-db now generates a shader program binary file using GetProgramBinary(). This shader program binary can be loaded via ProgramBinary() to be executed by an application later. v2: 1. define MAX_LOG_LEN and use it as the size of gl log 2. define MAX_PROG_SIZE and use it as the max size of extracted shader_program 3. out_file is now pointer allocated by strdup for the file name v3: 1. automatically using original shader test file's name + ".bin" as a filename for program binary - better way to cover the case with batch compilation of many shader test files in the same directory 2. remove --out=<file name> since it is now unnecessary (due to v3-1.) to provide custom file name. Instead, option, "--bin", which is basically a flag that enables getting program binary as a file. 3. Now it tries to get the length of binary by reading program's GL_PROGRAM_BINARY_LENGTH_OES parameter v4: 1. '--bin' -> '-b' 2. stop generating binary program when failing to retrieve the binary size 3. error checking after malloc for binary program 4. changed some of variable names 5. several consecutive fprintfs are consolidated 6. removed MAX_LOG_LEN and MAX_PROG_SIZE v5: bug fix: +1 to the length of the output file to cover '\0' Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
-
- May 20, 2018
-
-
Benedikt Schemmer authored
Sometimes it is nice (and useful) to not just see if you've messed up but also if you've made an improvement. Signed-off-by: Marek Olšák <marek.olsak@amd.com>
-
Benedikt Schemmer authored
When using sha as part of the captured shader name that name can get so long that part of it is cut off and not visible anymore (although this also happens when using long directory names etc.) So this is a general improvement. Signed-off-by: Marek Olšák <marek.olsak@amd.com>
-
- Apr 04, 2018
-
-
Faith Ekstrand authored
This gets the stub working again with meson builds of Mesa Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
-
This patch makes the -p option accept a numeric PCI ID (i.e. 0x1234) as well as the existing shorthand names. v2 (changes by Kenneth Graunke): - Allow -p to accept any number, not just hex. - Don't mention "GEN arch" - this tool is used for non-Intel GPUs too - Minor formatting Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
- Mar 06, 2018
-
-
Ian Romanick authored
Previously an absolute value less than 0.0001 would be printed as 0.00%. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
Ian Romanick authored
This is useful for preparing data to go in a Mesa commit message. v2: Use 'if x' instead of 'if len(x) > 0'. Suggested by Dylan. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
Ian Romanick authored
This is useful for preparing data to go in a Mesa commit message. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Suggested-by: Dylan Baker <baker.dylan.c@gmail.com>
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
Ian Romanick authored
All my scripts use uppercase names to generate names for results files. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
Ian Romanick authored
Nothing in the shader actually requires 1.30. This allows it to build on GM45 and Iron Lake... and other platforms stuck at GLSL 1.20. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
- Mar 01, 2018
-
-
Kenneth Graunke authored
This keeps it working after Mesa commit c3cd2aac279908a2de755d9454f293761d7b8d5a.
-
- Feb 14, 2018
-
-
To prevent a segfault, pci-id is set only if INTEL_DEVID_OVERRIDE exists. Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-
- Jan 31, 2018
-
-
Rob Clark authored
Reviewed-by: Matt Turner <mattst88@gmail.com>
-
Rob Clark authored
If we can't create a 3.2 core context, fall back to a 3.1 context. Reviewed-by: Matt Turner <mattst88@gmail.com>
-
Rob Clark authored
Since we need to create contexts on both the main thread and omp threads, combine things into a single helper. This reduces some duplication of logic in the following patches. Reviewed-by: Matt Turner <mattst88@gmail.com>
-
- Nov 27, 2017
-
-
Matt Turner authored
-
- Nov 12, 2017
-
-
Ilia Mirkin authored
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
-
- Nov 04, 2017
-
-
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
-
If a field was not present, its value will default to 0. This lets the code run on outputs that did not include the amount of shared memory used, for example. Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
-
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
-
- Sep 13, 2017
-
-
Matt Turner authored
-
- Aug 26, 2017
-
-
memmem() does not attribute what the character after the searched string is. Thus it will flag even when haystack is "foobar" while we're looking for "foo". Pull a small helper (from piglit) that correctly handles this and use it. v2: Drop unintentional whitespace changes (Eric) Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
-
Flesh the duplicated functionality to a helper. Use const char * + sscanf to keep the compiler happy. strtol discards the const qualifier of the endptr string. One could workaround it by using a local variable. Yet, sscanf seems like a shorter way to achieve the goal. Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
-
The same declaration was being used for two distinct things - a short EGL and the core GL extensions. In the former it is a const string, while the latter is a dynamically managed list of extensions. Define distinct variables within the specific scope. v2: use {egl,gl}_extension_string (Eric) Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
-
- Aug 17, 2017
-
-
These shaders have been generated by Dolphin 9649494f67 on Mesa 8c26b52349 for an HD4000 GPU. They include a lot of uniform branches, mostly on integers, as well as switch statements branching on small and bounded integers. Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
-
- Jun 25, 2017
-
-
Kenneth Graunke authored
The upstream version of Orbital Explorer doesn't run on Mesa drivers, as it (unnecessarily) requests a compatibility profile on non-Apple OSes, and suffers from GLEW bugs. I sent a pull request two years ago to port it to libepoxy and get it running on Mesa drivers, but it was never accepted. The author eventually emailed me and said that he considers it a "finished experiment" and said the rendering method (geometry shader based approach) is inefficient, and he intends to fully rewrite it someday. Since this is not representative of typical geometry shaders, and the project is effectively dead, we may as well remove it. Reviewed-by: Chad Versace <chadversary@chromium.org>
-
- May 20, 2017
-
-
Samuel Pitoiset authored
When GALLIUM_THREAD is already set in the environment, addenv() will end up by setting GALLIUM_THREAD="0,0" which mesa doesn't understand for some obvious reasons. Instead, use setenv() because we want to force this behaviour in all situations. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-
- May 15, 2017
-
-
Marek Olšák authored
without this, I get only 30k shaders instead of 48k in the report. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
-
- May 04, 2017
-
-
Kenneth Graunke authored
Recent Mesa has started detecting a hardware context ID of zero (which is bogus - it's the default context ID) and failing GL context creation. Previously it saw that the ioctl returned success and happily proceeded. Don't bother assigning a real ID, but do assign a non-zero value. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-
Kenneth Graunke authored
Haswell requires a relatively new command parser version to enable GL 4.5, and we'd like to compile those shaders. Since we don't actually execute anything, it doesn't really matter. Claim version 9, the current version. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-