summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* iris: Clear ::has_hiz when disabling auxNanley Chery2019-10-281-0/+1
| | | | | Fixes: 2cddc953cd0 ("iris: some initial HiZ bits") Reviewed-by: Kenneth Graunke <[email protected]>
* iris: Allow for non-Y-tiled aux allocationNanley Chery2019-10-281-1/+2
| | | | | | | | The Gen12 CCS is not Y-tiled. Reviewed-by: Sagar Ghuge <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
* iris: Don't assume CCS_E includes CCS_DNanley Chery2019-10-281-2/+3
| | | | | | | | There's no longer a clear-only compression mode of CCS on Gen12+. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Sagar Ghuge <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
* iris: Drop support for I915_FORMAT_MOD_Y_TILED_CCS on TGL+Nanley Chery2019-10-281-1/+1
| | | | | | | The format of the CCS has changed. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
* iris: Add support for depth bounds testing.Plamena Manolova2019-10-282-0/+24
| | | | | | | | In gen12 we use the 3DSTATE_DEPTH_BOUNDS instruction to enable depth bounds testing. Signed-off-by: Plamena Manolova <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* util: remove LIST_IS_EMPTY macroTimothy Arceri2019-10-2821-45/+45
| | | | | | | 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-2820-33/+33
| | | | | | | 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-2826-61/+61
| | | | | | | 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-286-10/+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-281-1/+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-289-22/+22
| | | | | | | 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-2830-54/+54
| | | | | | | 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-2834-73/+73
| | | | | | | Just use the inlined function directly. The macro was replaced with the function in ebe304fa540f. Reviewed-by: Eric Engestrom <[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]>