- 11 Sep, 2020 1 commit
-
-
The result of 0xf << 28 is a signed integer and hence overflows into the sign bit. In practice compilers did the right thing here, since the intent of the code was unsigned arithmetic anyway. Cc: mesa-stable Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <!6568> (cherry picked from commit 93c8777a)
-
- 15 Jun, 2020 1 commit
-
-
Samuel Pitoiset authored
It's similar between RADV and RadeonSI. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!5436>
-
- 28 Jan, 2020 1 commit
-
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <!3086>
-
- 08 Nov, 2019 1 commit
-
-
Timur Kristóf authored
It happens that some games try to access a vertex buffer without a valid format. This case was incorrectly handled by ac_get_tbuffer_format which made ACO emit an invalid instruction. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Cc: 19.3 <mesa-stable@lists.freedesktop.org> Reviewed-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com>
-
- 26 Sep, 2019 3 commits
-
-
Add a function called ac_get_fs_input_vgpr_cnt which will return the number of input VGPRs used by an AMD shader. Previously, radv and radeonsi had the same code duplicated, but this commit also allows them to share this code. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
This commit moves ac_get_tbuffer_format, ac_get_sampler_dim and ac_get_image_dim into ac_shader_util, thus enabling them to be used by compilers other than LLVM. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
The aim of this commit is to keep ac_shader_util LLVM-free, since we would like to use it in ACO later. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
- 16 May, 2019 1 commit
-
-
Marek Olšák authored
Acked-by:
Dave Airlie <airlied@redhat.com> We already use GFX9 and I don't want us to have confusing naming in the driver. GFXn naming is better from the driver perspective, because it's the real version of the gfx portion of the hw. Also, CIK means Bonaire-Kaveri-Kabini, it doesn't mean CI. It shouldn't confuse our SDMA, UVD, VCE etc. code much. Those have nothing to do with GFXn and they have their own version numbers.
-
- 22 Dec, 2017 1 commit
-
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
- 18 Dec, 2017 2 commits
-
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
- 14 Dec, 2017 1 commit
-
-
Samuel Pitoiset authored
ac_shader_util.c will contain shader helpers for RadeonSI and RADV. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
- 13 Sep, 2017 1 commit
-
-
chadversary authored
This patch renames build_id_find_nhdr() to build_id_find_nhdr_for_addr(), and changes it to never examine the library name. Tested on Fedora by confirming that build_id_get_data() returns the same build-id as the file(1) tool. For BSD, I confirmed that the API used (dladdr() and struct Dl_info) is documented in FreeBSD's manpages. This solves two problems: - We can now the query the build-id without knowing the installed library's filename. This matters because Android requires specific filenames for HAL modules, such as "/vendor/lib/hw/vulkan.${board}.so". The HAL filenames do not follow the Unix convention of "libfoo.so". In other words, the same query code will now work on Linux and Android. - Querying the build-id now works correctly when the process contains multiple shared objects with the same basename. (Admittedly, this is a highly unlikely scenario). Cc: Jonathan Gray <jsg@jsg.id.au> Reviewed-by:
Matt Turner <mattst88@gmail.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
- 22 Mar, 2017 1 commit
-
-
Emil Velikov authored
Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com> Acked-by:
Vedran Miletić <vedran@miletic.net> Acked-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Edward O'Callaghan <funfunctor@folklore1984.net>
-
- 01 Mar, 2017 1 commit
-
-
Jason Ekstrand authored
We're about to use the build-id as the starting point for another SHA1 hash in the Intel Vulkan driver, and returning a pointer is far more convenient. Reviewed-by:
Chad Versace <chadversary@chromium.org>
-
- 15 Feb, 2017 1 commit
-
-
Matt Turner authored
Provides the ability to read the .note.gnu.build-id section of ELF binaries, which is inserted by the --build-id=... flag to ld. Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Chad Versace <chadversary@chromium.org>
-
- 04 Jun, 2016 1 commit
-
-
Jason Ekstrand authored
Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
-
- 29 May, 2015 1 commit
-
-
Jason Ekstrand authored
The backend_shader class really is a representation of a shader. The fact that it inherits from ir_visitor is somewhat immaterial. Reviewed-by:
Matt Turner <mattst88@gmail.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
- 20 Nov, 2013 1 commit
-
-
Matt Turner authored
Removes IF/ENDIF and IF/ELSE/ENDIF with no intervening instructions. total instructions in shared programs: 1360393 -> 1360387 (-0.00%) instructions in affected programs: 157 -> 151 (-3.82%) (no change in vertex shaders) Reviewed-by:
Paul Berry <stereotype441@gmail.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
- 22 Jul, 2011 1 commit
-
-
Paul Berry authored
This patch adds a new build artifact, glsl_test, which can be used for testing optimization passes in isolation. I'm hoping that we will be able to add other useful standalone tests to this executable in the future. Accordingly, it is built in a modular fashion: the main() function uses its first argument to determine which test function to invoke, removes that argument from argv[], and then calls that function to interpret the rest of the command line arguments and perform the test. Currently the only test function is "optpass", which tests optimization passes.
-
- 24 Jun, 2010 1 commit
-
-
Emma Anholt authored
-
- 05 May, 2010 1 commit
-
-
Emma Anholt authored
-
- 23 Apr, 2010 1 commit
-
-
Emma Anholt authored
We still don't inline for control flow in the inlined function, and we don't have any limits on what we will inline.
-
- 21 Apr, 2010 1 commit
-
-
Kenneth Graunke authored
-
- 08 Apr, 2010 1 commit
-
-
Emma Anholt authored
-
- 07 Apr, 2010 2 commits
-
-
Ian Romanick authored
-
Ian Romanick authored
This touches a lot of files because everything derived from ir_visitor has to be updated. This is the primary disadvantage of the visitor pattern.
-
- 06 Apr, 2010 1 commit
-
-
Emma Anholt authored
-
- 29 Mar, 2010 1 commit
-
-
Ian Romanick authored
The following tests now pass: glslparsertest/shaders/if1.frag glslparsertest/shaders/if2.frag The following tests that used to pass now fail. It appears that most of these fail because ast_nequal and ast_equal are not converted to HIR. shaders/glsl-unused-varying.frag shaders/glsl-fs-sqrt-branch.frag
-
- 26 Mar, 2010 2 commits
-
-
Kenneth Graunke authored
Also turn generate_swizzle into a static "create" method of the new class; we'll want to use it for the IR reader as well. Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Ian Romanick authored
Also make a slight change to ir_variable. The ir_dereference tracks the number of nested dereferences. If an ir_variable is visited and the count is non-zero, just print the name of the variable.
-
- 19 Mar, 2010 1 commit
-
-
Ian Romanick authored
-
- 11 Mar, 2010 1 commit
-
-
Ian Romanick authored
-
- 10 Mar, 2010 2 commits
-
-
Ian Romanick authored
-
Ian Romanick authored
The ir_visitor class is the abstract base class for all visitors. ir_print_visitor contains the beginnings of a concrete visitor class that will print out an IR sequence in a Lisp / Scheme-like syntax.
-
- 23 Feb, 2010 1 commit
-
-
Ian Romanick authored
The ast_expression_bin subclass is used for all binary expressions such as addition, subtraction, and comparisons. Several other subclasses are soon to follow.
-
- 22 Feb, 2010 1 commit
-
-
Ian Romanick authored
-