summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* util: remove LIST_IS_EMPTY macroTimothy Arceri2019-10-2825-56/+53
| | | | | | | Just use the inlined function directly. The new function was introduced in addcf410. Reviewed-by: Eric Engestrom <[email protected]>
* util: rename list_empty() to list_is_empty()Timothy Arceri2019-10-2853-93/+93
| | | | | | | This makes it clear that it's a boolean test and not an action (eg. "empty the list"). Reviewed-by: Eric Engestrom <[email protected]>
* util: remove LIST_DEL macroTimothy Arceri2019-10-2831-68/+66
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
* util: remove LIST_DELINIT macroTimothy Arceri2019-10-287-11/+10
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
* util: remove LIST_REPLACE macroTimothy Arceri2019-10-282-2/+1
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
* util: remove LIST_ADD macroTimothy Arceri2019-10-2812-25/+24
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
* util: remove LIST_ADDTAIL macroTimothy Arceri2019-10-2833-58/+57
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
* util: remove LIST_INITHEAD macroTimothy Arceri2019-10-2839-80/+79
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[email protected]>
* gitlab-ci: fixup debian tagsErik Faye-Lund2019-10-281-1/+1
| | | | | | | When resolving a merge-conflict, I accidentally only updated the ARM64-tag tag. Let's correct this. Fixes: 3d529c17393 ("gitlab-ci: also build Zink on CI")
* intel/compiler: Fix C++ one definition rule violationsDanylo Piliaiev2019-10-284-20/+20
| | | | | | | | When building with "-flto" brw::block_data definitions were colliding. Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Matt Turner <[email protected]>
* gitlab-ci: also build Zink on CIErik Faye-Lund2019-10-282-2/+3
| | | | | | | This prevents accidentally breaking the driver-build while working on other drivers. Signed-off-by: Erik Faye-Lund <[email protected]>
* zink: simplify gl-to-vulkan loweringErik Faye-Lund2019-10-281-48/+23
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: more complete sampler-dim handlingErik Faye-Lund2019-10-281-4/+8
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: fixup scissoringErik Faye-Lund2019-10-282-35/+12
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: limited uniform buffer size so the limits is not exceeded.Duncan Hopkins2019-10-281-1/+2
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: do not set lineWidth to invalid valueErik Faye-Lund2019-10-281-1/+6
| | | | | | | | Some implementations don't support the lineWidth-feature, so let's avoid setting invalid state to them. But since we don't have a fallback for this, inform the user. Acked-by: Jordan Justen <[email protected]>
* zink: pass screen to zink_create_gfx_pipelineErik Faye-Lund2019-10-283-4/+8
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: respect ubo buffer alignment requirementDuncan Hopkins2019-10-281-2/+5
| | | | | | | | The driver can report a minimum alignment for UBOs, and that can be larger than 64, which we've currently been using. Let's play ball, and use the reported value instead. Acked-by: Jordan Justen <[email protected]>
* zink: fix line-width calculationDuncan Hopkins2019-10-281-3/+16
| | | | | | | | | | | There's two things that goes wrong in this code on some drivers: 1. Rounding off the line-width to granularity can push it outside the legal range. 2. A granularity of 0.0 results in NaN, because we divide by zero. So let's make this code a bit more robust. Acked-by: Jordan Justen <[email protected]>
* zink: fixup return-valueErik Faye-Lund2019-10-281-1/+1
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: refactor blittingErik Faye-Lund2019-10-281-107/+138
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: implement resource_from_handleErik Faye-Lund2019-10-281-4/+27
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: use VK_FORMAT_B8G8R8A8_UNORM for PIPE_FORMAT_B8G8R8X8_UNORMErik Faye-Lund2019-10-281-0/+1
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: do not set VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT for non-3D texturesErik Faye-Lund2019-10-281-10/+4
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: alias var0 on tex0 etc insteadErik Faye-Lund2019-10-281-2/+6
| | | | | | This fixes Quake3, and is more in line with directx semantics. Acked-by: Jordan Justen <[email protected]>
* zink: lower two-sided coloringErik Faye-Lund2019-10-282-4/+9
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: alias generic varyings on non-generic onesErik Faye-Lund2019-10-281-9/+12
| | | | | | This gets rid of the nasty location-allocation hack. Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement load_front_faceErik Faye-Lund2019-10-282-3/+43
| | | | | | | | We're now adding interface-types during code-emitting, so we need to defer emitting the entry-point. No biggie, spirv_builder is prepares for this. Acked-by: Jordan Justen <[email protected]>
* zink/spirv: fixup b2i32Erik Faye-Lund2019-10-281-2/+33
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: do not lower bools to floatErik Faye-Lund2019-10-282-2/+1
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: prepare for 1-bit booleansErik Faye-Lund2019-10-281-6/+6
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: fixup b2i32 and implement b2f32Erik Faye-Lund2019-10-281-1/+10
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: clean up get_[fu]vec_constantErik Faye-Lund2019-10-281-59/+48
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: inline get_uvec_constant into emit_load_constErik Faye-Lund2019-10-281-3/+17
| | | | | | | | This is the only call-site that wants to specify unique values per component for any of the get_*_constant functions. So let's give this its own implementation instead, so we can ease the burden for the rest. Acked-by: Jordan Justen <[email protected]>
* zink/spirv: add emit_uint_const-helperErik Faye-Lund2019-10-281-14/+20
| | | | | | | While we're at it, let's move emit_float_const to the same location as this needs to be defined at. Acked-by: Jordan Justen <[email protected]>
* zink/spirv: add emit_bitcast-helperErik Faye-Lund2019-10-281-6/+11
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: use bit_size instead of hard-codingErik Faye-Lund2019-10-281-2/+2
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement emit_float_const helperErik Faye-Lund2019-10-281-6/+12
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement emit_select helperErik Faye-Lund2019-10-281-4/+11
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement b2i32Erik Faye-Lund2019-10-281-0/+5
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement bitwise opsErik Faye-Lund2019-10-281-0/+3
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement bcselErik Faye-Lund2019-10-281-0/+5
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: assert bit-sizeErik Faye-Lund2019-10-281-0/+1
| | | | | | | This is going to make it easier to verify that 1-bit float sizes don't leak into the rest of the code. Acked-by: Jordan Justen <[email protected]>
* zink/spirv: implement f2b1Erik Faye-Lund2019-10-281-0/+9
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: use ordered comparesErik Faye-Lund2019-10-281-2/+2
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: lower point-sizeErik Faye-Lund2019-10-281-0/+1
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: add missing sRGB DXT-formatsErik Faye-Lund2019-10-281-0/+5
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: disable PIPE_CAP_QUERY_TIME_ELAPSED for nowErik Faye-Lund2019-10-281-0/+4
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: support shadow-samplersErik Faye-Lund2019-10-283-7/+34
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: fix rendering to 3D-texturesErik Faye-Lund2019-10-282-1/+3
| | | | Acked-by: Jordan Justen <[email protected]>