summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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]>
* zink: initialize nr_samples for pipe_surfaceErik Faye-Lund2019-10-281-0/+1
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: use primconvert to get rid of 8-bit indicesErik Faye-Lund2019-10-281-1/+2
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: also accept txlErik Faye-Lund2019-10-281-1/+2
| | | | Acked-by: Jordan Justen <[email protected]>
* HACK: zink: suspend / resume queries on batch-boundariesErik Faye-Lund2019-10-284-33/+176
| | | | | | | HACK because we assert that we don't overrun the pool. We need a fallback here instead. Acked-by: Jordan Justen <[email protected]>
* zink: move set_active_query_state-stub to zink_query.cErik Faye-Lund2019-10-282-6/+6
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: disable timestamp-queriesErik Faye-Lund2019-10-281-0/+2
| | | | | | | We don't implement the get_timestamp context-method, so this is just going to crash if anyone tries to use it. Let's implement it later. Acked-by: Jordan Justen <[email protected]>
* zink: fixup boolean queriesErik Faye-Lund2019-10-281-4/+21
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: support vec1 coordinatesErik Faye-Lund2019-10-281-6/+11
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: do not use both depth and stencil aspects for sampler-viewsErik Faye-Lund2019-10-283-7/+18
| | | | Acked-by: Jordan Justen <[email protected]>
* zink/spirv: always enable Sampled1D for fragment shadersErik Faye-Lund2019-10-281-0/+4
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: add note about enabling PIPE_CAP_CLIP_HALFZErik Faye-Lund2019-10-281-0/+5
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: don't crash when setting rast-state to NULLErik Faye-Lund2019-10-281-1/+3
| | | | Acked-by: Jordan Justen <[email protected]>
* zink: remove insecure commentErik Faye-Lund2019-10-281-1/+0
| | | | | | | This isn't as inaccurate as the comment says, the Vulkan documentation even seems to suggest this is the same. Let's drop the comment. Acked-by: Jordan Justen <[email protected]>
* zink: avoid texelFetch until it's implementedErik Faye-Lund2019-10-281-1/+1
| | | | Acked-by: Jordan Justen <[email protected]>