summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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]>
* pan/midgard: Fix memory corruption in register spillingAlyssa Rosenzweig2019-10-161-2/+2
| | | | | | | Essentially an off-by-one error ... bit of an edge case, but seems to occur in some glamor shaders. Signed-off-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Allow COMPUTE jobs in panfrost_bo_access_for_stageAlyssa Rosenzweig2019-10-161-1/+7
| | | | | Fixes: ada752afe40 ("panfrost: Extend the panfrost_batch_add_bo() API to pass access flags") Signed-off-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Use 16-bit liveness masksAlyssa Rosenzweig2019-10-163-15/+14
| | | | | | We'll want liveness per-byte, so we need to accomodate up to 16 bytes. Signed-off-by: Alyssa Rosenzweig <[email protected]>
* panfrost: Disable frame throttlingAlyssa Rosenzweig2019-10-161-0/+3
| | | | | | | | | | | | | | The new frame throttling implemention interacts unfortunately with pipelining, leading to fence fds leaking like crazy and ultimately apps crashing quickly. With this patch, apps still crash but not as quickly. We need to either figure out the real cause or revert the core changes. Nevertheless, we don't want frame throttling in the first place, so. Fixes: a65e29ccb26 ("gallium: simplify throttle implementation") Signed-off-by: Alyssa Rosenzweig <[email protected]>
* mesa: fix invalid target error handling for teximagePierre-Eric Pelloux-Prayer2019-10-161-7/+8
| | | | | | | | | This commit moves the target check before using _mesa_get_current_tex_object to fix a "Mesa implementation error: bad target in _mesa_get_current_tex_object()" error. Fixes: 9dd1f7cec01 ("mesa: pass gl_texture_object as arg to not depend on state") Reviewed-by: Marek Olšák <[email protected]>
* radeonsi/nir: simplify si_lower_nir signatureMarek Olšák2019-10-154-17/+17
| | | | just a cleanup
* pan/midgard: Fix mir_mask_of_read_components with dot productsAlyssa Rosenzweig2019-10-151-5/+5
| | | | Signed-off-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Add perspective ops to mir_get_swizzleAlyssa Rosenzweig2019-10-151-0/+6
| | | | | | I really need to just make this a table.. Signed-off-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Don't try to propagate swizzles to branchesAlyssa Rosenzweig2019-10-151-2/+2
| | | | Signed-off-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Allow non-contiguous masks in UBO loweringAlyssa Rosenzweig2019-10-151-7/+2
| | | | | | | We don't really need to impose this condition, but we do need to cope with the slightly more general case. Signed-off-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Report read mask for branch argumentsAlyssa Rosenzweig2019-10-151-0/+4
| | | | | | Conditionals in particular read values. Signed-off-by: Alyssa Rosenzweig <[email protected]>