summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-07-31radeonsi: enable ARB_transform_feedback_overflow_queryarb_transform_feedback_overflow_queryNicolai Hähnle3-3/+3
v2: update for new cap name
2017-07-31radeonsi: avoid redundant SET_PREDICATION packet with QBO workaroundNicolai Hähnle1-4/+9
The QBO workaround compute grid launch emits the render condition atom when dirty, so install the render condition in the context only after launching the compute grid. This avoids a redundant SET_PREDICATION.
2017-07-31radeonsi: fix streamout overflow predication on VI+Nicolai Hähnle3-18/+75
There is a firmware regression that causes failures. Work around it by using the compute shader for query_buffer_objects to summarize the query results.
2017-07-31gallium/radeon: implement qbo for SO_OVERFLOW_PREDICATENicolai Hähnle1-7/+37
2017-07-31gallium/radeon: implement basic parts of PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATENicolai Hähnle1-25/+71
2017-07-31gallium/radeon: fix render predication by SO overflow predicateNicolai Hähnle1-7/+6
The predication bits are "visible or no overflow" and "not visible or overflow", so we need to invert the check relative to the GL and Gallium interface semantics. Also, predication by the other streamout-related queries is not allowed.
2017-07-31gallium/radeon: fix ARB_query_buffer_object conversion to booleanNicolai Hähnle1-1/+2
The issue here is that the immediate is treated as a 64-bit value, and fetching it does not work reliably with swizzles that are different from xy and zw. Cc: mesa-stable@lists.freedesktop.org
2017-07-31st/mesa: implement ARB_transform_feedback_overflow_queryNicolai Hähnle2-1/+4
v2: update for new cap name
2017-07-31ddebug: handle get_query_result_resource as a GPU callNicolai Hähnle3-32/+92
2017-07-31gallium/util: add util_{str,dump}_query_value_typeNicolai Hähnle2-0/+31
2017-07-31gallium: add util_dump_query_type and use it in ddebugNicolai Hähnle3-11/+13
2017-07-31gallium: rename util_dump_* to util_str_* for enum-to-string conversionNicolai Hähnle7-103/+99
This is mostly mechanical search-and-replace, plus touching up the macros in u_dump_defines.c manually a bit.
2017-07-31gallium: add PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE and corresponding capNicolai Hähnle21-2/+37
v2: rename cap to PIPE_CAP_QUERY_SO_OVERFLOW and be a bit more explicit in the documentation
2017-07-31ac/common: always build NIR translationNicolai Hähnle1-7/+2
radeonsi needs it now, and we require LLVM 3.9 anyway. Fixes a build with radeonsi but not radv.
2017-07-31Android: fix compile error for DRI2 loader getCapabilityRob Herring1-1/+1
Fix compile failure from commit 1bf703e4ea5c ("dri_interface,egl,gallium: only expose RGBA visuals on Android"). Fixes: 1bf703e4ea5c ("dri_interface,egl,gallium: only expose RGBA visuals on Android") Cc: 17.2 <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Rob Herring <robh@kernel.org>
2017-07-31Attempt to fix AppVeyor build, round 2Nicolai Hähnle1-5/+7
2017-07-31Revert "st/mesa: release sampler views when redefining a texture in ↵Marek Olšák1-2/+0
st_context_teximage" This reverts commit 5c1241268ba9b240cb79ab9a30c5255b176c83c9. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101961 Cc: 17.2 <mesa-stable@lists.freedesktop.org>
2017-07-31Attempt to fix the AppVeyor buildNicolai Hähnle2-4/+1
2017-07-31xmlconfig: move into src/utilNicolai Hähnle54-111/+125
v2: attempt to fix Android build (Emil) v3: add missing include path Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
2017-07-31xmlconfig: remove GL type dependenciesNicolai Hähnle1-6/+4
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: ensure that temp array allocas are in the entry blockNicolai Hähnle1-1/+1
Otherwise, code generation fails. This has become necessary since some shaders are wrapped in control flow. Fixes: 081ac6e5c6d2 ("radeonsi/gfx9: always wrap GS and TCS in an if-block (v2)") Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: enable R600_DEBUG=nir for vertex and fragment shadersNicolai Hähnle3-1/+8
Also, disable geometry and tessellation shaders. Mixing and matching NIR and TGSI shaders should work (and I've tested it for the VS/PS interface), but geometry and tessellation requires VS-as-ES/LS, which isn't implemented yet for NIR. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: VS as ES/LS are not yet supported with R600_DEBUG=nirNicolai Hähnle1-0/+2
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi/nir: lower uniforms to UBO loadsNicolai Hähnle1-0/+10
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: implement load_frag_coord intrinsicNicolai Hähnle1-0/+10
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi/nir: lower txp instructionsNicolai Hähnle1-0/+5
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: pass ac_llvm_context to unpack_paramNicolai Hähnle1-18/+18
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir,radeonsi: add and use ac_shader_abi::frag_posNicolai Hähnle3-17/+26
v2: update for LLVMValueRefs in ac_shader_abi Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir,radeonsi: add and use ac_shader_abi::{ancillary,sample_coverage}Nicolai Hähnle3-8/+10
v2: update for LLVMValueRefs in ac_shader_abi Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir,radv: move force_persample to ac_shader_info::force_persampleNicolai Hähnle6-6/+10
Avoid accessing radv-specific structures during the meat of NIR-to-LLVM translation. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: tweak next-shader assumptions when streamout is usedNicolai Hähnle1-5/+11
VS with streamout is always a HW VS. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: use new function ac_build_umin for edgeflag clampingNicolai Hähnle3-1/+9
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: clamp shadow texture comparison value on VINicolai Hähnle1-1/+13
Needed for TC-compatible HTILE in radeonsi for test cases like piglit spec/arb_texture_rg/execution/fs-shadow2d-red-01.shader_test Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: add always_vector argument to ac_build_gather_values_extendedNicolai Hähnle3-19/+13
This simplifies a bunch of places that no longer need special treatment of value_count == 1. We rely on LLVM to optimize away the 1-element vector types. This fixes a bunch of bugs where 1-element arrays are indexed indirectly. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir,radeonsi: add ac_shader_abi::front_faceNicolai Hähnle3-7/+15
v2: update for LLVMValueRefs in ac_shader_abi Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: pass ac_nir_context to emit_ddxyNicolai Hähnle1-15/+14
Allocating the ddxy_lds is considered to be part of the API shader translation and not part of the ABI. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: pass ac_nir_context to SSBO intrinsic handlersNicolai Hähnle1-55/+59
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: implement and use ac_shader_abi::load_ssboNicolai Hähnle2-11/+20
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi: make get_indirect_index globally visibleNicolai Hähnle2-10/+13
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: load buffer descriptors via ac_shader_abi::load_ssboNicolai Hähnle2-8/+30
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: pass ac_nir_context to emit_discard_ifNicolai Hähnle1-8/+8
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: extract shader_info->fs.can_discard from NIR shader infoNicolai Hähnle1-2/+2
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi/nir: perform radeonsi-specific lowering and optimization passesNicolai Hähnle1-0/+41
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi/nir: perform lowering of input/output driver locationsNicolai Hähnle3-0/+29
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: handle old-style shadow tex instructions correctlyNicolai Hähnle1-1/+3
The first element is only extracted for new-style shadow tex. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: whitespace fixesNicolai Hähnle1-1/+1
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: use shader_info pass to determine whether instance_id is usedNicolai Hähnle3-2/+9
This improves the separation of ABI and NIR translation. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: move setting shader_info->fs.writes_memory to radv-specific codeNicolai Hähnle1-6/+3
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31radeonsi/nir: add image descriptor loadingNicolai Hähnle3-8/+32
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-07-31ac/nir: add image and write parameter to ac_shader_abi::load_sampler_descNicolai Hähnle3-20/+30
Reviewed-by: Marek Olšák <marek.olsak@amd.com>