aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* nir: drop unused alpha_ref_floatErik Faye-Lund2019-10-172-2/+0
| | | | Reviewed-by: Marek Olšák <[email protected]>
* nir: drop support for using load_alpha_ref_floatErik Faye-Lund2019-10-171-14/+11
| | | | Reviewed-by: Marek Olšák <[email protected]>
* v3d: do not report alpha-test as supportedErik Faye-Lund2019-10-173-11/+3
| | | | | | | This triggers lowering in the state-tracker, which makes things a bit simpler. Reviewed-by: Marek Olšák <[email protected]>
* vc4: do not report alpha-test as supportedErik Faye-Lund2019-10-172-14/+4
| | | | | | | This triggers lowering in the state-tracker, which makes things a bit simpler. Reviewed-by: Marek Olšák <[email protected]>
* panfrost: do not report alpha-test as supportedErik Faye-Lund2019-10-173-20/+3
| | | | | | | This triggers lowering in the state-tracker, which makes things a bit simpler. Reviewed-by: Marek Olšák <[email protected]>
* mesa/st: support lowering user-clip-planes automaticallyErik Faye-Lund2019-10-178-2/+45
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa/program: support referencing the clip-space clip-plane stateErik Faye-Lund2019-10-172-0/+14
| | | | Reviewed-by: Marek Olšák <[email protected]>
* nir: support feeding state to nir_lower_clip_[vg]sErik Faye-Lund2019-10-177-17/+49
| | | | Reviewed-by: Marek Olšák <[email protected]>
* nir: support lowering clipdist to arraysErik Faye-Lund2019-10-177-44/+89
| | | | | | | | This allows us to make sure clipdist is emitted as a scalar array rather than two vec4s. This matches SPIR-V semantics, and will be useful for Zink. Reviewed-by: Marek Olšák <[email protected]>
* mesa/gallium: automatically lower two-sided lightingErik Faye-Lund2019-10-179-3/+22
| | | | Reviewed-by: Marek Olšák <[email protected]>
* nir: support derefs in two-sided lighting loweringErik Faye-Lund2019-10-171-12/+28
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa/gallium: automatically lower point-sizeErik Faye-Lund2019-10-178-1/+26
| | | | Reviewed-by: Marek Olšák <[email protected]>
* nir: add lowering-pass for point-size movErik Faye-Lund2019-10-174-0/+74
| | | | Reviewed-by: Marek Olšák <[email protected]>
* st/mesa: move point_size_per_vertex-logic to helperErik Faye-Lund2019-10-172-30/+34
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa/gallium: automatically lower alpha-testingErik Faye-Lund2019-10-178-1/+27
| | | | Reviewed-by: Marek Olšák <[email protected]>
* nir: allow passing alpha-ref state to lowering-codeErik Faye-Lund2019-10-175-7/+25
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: expose alpha-ref as a state-variableErik Faye-Lund2019-10-172-0/+11
| | | | Reviewed-by: Marek Olšák <[email protected]>
* st/mesa: handling lower flatshading for NIR drivers.Dave Airlie2019-10-176-1/+18
| | | | | | | This uses the NIR pass to lower flatshading when the driver requests it. Reviewed-by: Marek Olšák <[email protected]>
* gallium: add flatshade lowering capabilityDave Airlie2019-10-173-0/+5
| | | | | | | This allows the driver to request flatshade lowering. (NIR drivers only so far). Reviewed-by: Marek Olšák <[email protected]>
* nir: add a pass to lower flat shading.Dave Airlie2019-10-174-0/+54
| | | | | | | This takes any color or backcolor that has unspecified shading and converts it to flat shading. Reviewed-by: Marek Olšák <[email protected]>
* gallium/u_blitter: set a more sane viewport-stateErik Faye-Lund2019-10-171-6/+5
| | | | | | | This actually corresponds to legal GL depth-ranges, because depth-clear values are always in the 0..1 range in OpenGL. Reviewed-by: Marek Olšák <[email protected]>
* st/mesa: reorder and document code in st_translate_vertex_programMarek Olšák2019-10-161-19/+25
| | | | | | move the TGSI code after the ARB_vp code Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: call prog_to_nir sooner for ARB_fpMarek Olšák2019-10-161-34/+32
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: don't call translate_*_program functions for NIRMarek Olšák2019-10-163-27/+21
| | | | | | move the initializaton to st_link_nir Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: finalize NIR after shader variant passes for TCS/TES/GS/CSMarek Olšák2019-10-161-2/+3
| | | | | | | | Same as VS and FS. This might fix vertex color clamping. Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: unify transform feedback info translation codeMarek Olšák2019-10-164-86/+48
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: move vertex program preparation code into st_prepare_vertex_programMarek Olšák2019-10-162-31/+42
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: clean up more after the removal of st_compute_programMarek Olšák2019-10-163-124/+31
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: deduplicate st_common_program code in st_program_string_notifyMarek Olšák2019-10-161-40/+8
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: sink TCS/TES/GS/CS translate code into st_translate_common_programMarek Olšák2019-10-163-221/+116
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: deduplicate cases in st_deserialise_ir_programMarek Olšák2019-10-161-73/+20
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: remove st_compute_program in favor of st_common_programMarek Olšák2019-10-1611-174/+59
| | | | | | | The conversion from pipe_shader_state to pipe_compute_state is done at the end. Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: don't store stream output info to shader cache for tess ctrl shadersMarek Olšák2019-10-161-2/+3
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: simplify the signature of st_release_basic_variantsMarek Olšák2019-10-164-28/+13
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: deduplicate code for ATI fs in st_program_string_notifyMarek Olšák2019-10-161-17/+9
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: use *prog at the end of st_link_nirMarek Olšák2019-10-161-4/+4
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* st/mesa: fix crash for drivers supporting nir defaulting to tgsiKarol Herbst2019-10-161-4/+4
| | | | | | | | | | | | nvc0 and I assume radeonsi as well hit an assert inside glsl_to_tgsi as atan instructions get inserted into the shader. Fixes: cece947a8dfa ("glsl/builtin: Add alternate versions of atan using new ops") Cc: Neil Roberts <[email protected]> Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* util/u_atomic: fix return type of p_atomic_{inc,dec}_return() and ↵Eric Engestrom2019-10-161-4/+4
| | | | | | | | | | | | p_atomic_{cmp,}xchg() We're trying to cast the return type to the type of the var, but instead we were casting `sizeof(*v)`. Fixes: 6df72e970c0e2794a565 ("util: Make u_atomic.h typeless.") Fixes: 0a7f17cf5b591330a257 ("util/u_atomic: add p_atomic_xchg") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* mesa/math: delete duplicate extern symbolEric Engestrom2019-10-161-2/+0
| | | | | | | | It's already defined in `m_debug_util.h`, along with an explanation of what it is and how to use it. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa/math: delete leftover... from 18 years ago (!)Eric Engestrom2019-10-161-4/+0
| | | | | | | Left over from 0a79baf1bff93718e50a ("remove dead vertex assembly"). Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* lima: Fix crash when there are no vertex shader attributesAndreas Baierl2019-10-161-3/+3
| | | | | Signed-off-by: Andreas Baierl <[email protected]> Reviewed-by: Vasily Khoruzhick <[email protected]>
* lima: Fix compiler warning in standalone compilerAndreas Baierl2019-10-161-1/+1
| | | | | | | 'struct lima_context' has to be declared before usage in lima_program.h Signed-off-by: Andreas Baierl <[email protected]> Reviewed-by: Vasily Khoruzhick <[email protected]>
* aco: emit_split_vector() s_memtime resultsRhys Perry2019-10-161-0/+1
| | | | | Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]>
* aco: don't CSE s_memtimeRhys Perry2019-10-161-1/+1
| | | | | Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]>
* aco: fix scheduling with s_memtime/s_memrealtimeRhys Perry2019-10-161-0/+8
| | | | | Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]>
* intel/common: include unistd.h for ioctl() prototype on SolarisAlan Coopersmith2019-10-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes build errors of: In file included from ../src/intel/vulkan/anv_private.h:48, from ../src/intel/vulkan/genX_blorp_exec.c:26: ../src/intel/common/gen_gem.h: In function ‘gen_ioctl’: ../src/intel/common/gen_gem.h:68:15: error: implicit declaration of function ‘ioctl’ [-Werror=implicit-function-declaration] 68 | ret = ioctl(fd, request, arg); | ^~~~~ In file included from ../include/c11/threads_posix.h:35, from ../include/c11/threads.h:66, from ../src/mesa/main/mtypes.h:39, from ../src/intel/compiler/brw_compiler.h:30, from ../src/intel/vulkan/anv_private.h:51, from ../src/intel/vulkan/genX_blorp_exec.c:26: /usr/include/unistd.h: At top level: /usr/include/unistd.h:471:12: error: conflicting types for ‘ioctl’ 471 | extern int ioctl(int, int, ...); | ^~~~~ /usr/include/unistd.h:471:1: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration 471 | extern int ioctl(int, int, ...); | ^~~~~~ In file included from ../src/intel/vulkan/anv_private.h:48, from ../src/intel/vulkan/genX_blorp_exec.c:26: ../src/intel/common/gen_gem.h:68:15: note: previous implicit declaration of ‘ioctl’ was here 68 | ret = ioctl(fd, request, arg); | ^~~~~ Signed-off-by: Alan Coopersmith <[email protected]> Acked-by: Eric Engestrom <[email protected]>
* util: Solaris has linux-style pthread_setname_npAlan Coopersmith2019-10-161-1/+1
| | | | | | | Fixes: dcf9d91a ("util: Handle differences in pthread_setname_np") Signed-off-by: Alan Coopersmith <[email protected]> Acked-by: Eric Engestrom <[email protected]>
* util: Workaround lack of flock on SolarisAlan Coopersmith2019-10-161-0/+10
| | | | | | | v2: Replace autoconf check for flock() with meson check Signed-off-by: Alan Coopersmith <[email protected]> Acked-by: Eric Engestrom <[email protected]>
* util: Make Solaris implemention of p_atomic_add work with gccAlan Coopersmith2019-10-161-2/+2
| | | | | | | | | | | | | | | | gcc is very particular about where you place the (void) cast The previous placement made it error out with: In file included from disk_cache.c:40:0: ../../src/util/u_atomic.h:203:29: error: void value not ignored as it ought to be #define p_atomic_add(v, i) ((void) \ ^ disk_cache.c:658:4: note: in expansion of macro ‘p_atomic_add’ p_atomic_add(cache->size, size); ^ Signed-off-by: Alan Coopersmith <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
* pan/midgard: Do not repeatedly spill same valueAlyssa Rosenzweig2019-10-161-2/+14
| | | | | | | It doesn't make sense. You already spilled it once, and it didn't help. Don't try again, or you'll end up in a loop. Signed-off-by: Alyssa Rosenzweig <[email protected]>