summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Handle pbuffers in desktop GL framebuffer attachment queriesKenneth Graunke2019-10-151-5/+7
| | | | | | | | | | Once again, we were handling back-to-front in the GLES3 case, but not the desktop GL case. Fixes GTF-GL46.gtf30.GL3Tests.framebuffer_srgb.framebuffer_srgb_default_encoding when run with --deqp-surface-type=pbuffer --deqp-gl-context-type=egl. Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* mesa: Make back_to_front_if_single_buffered non-staticKenneth Graunke2019-10-152-5/+9
| | | | | | | So I can use it in fbobject.c in the next commit. Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* mesa: Use ctx->ReadBuffer in glReadBuffer back-to-front testsKenneth Graunke2019-10-151-4/+5
| | | | | | | | | We were looking at ctx->DrawBuffer when asking about the read buffer, which was good enough for CTS purposes, but definitely not right. Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* etnaviv: remove variable from global namespaceLionel Landwerlin2019-10-151-1/+1
| | | | | | | | | Found out by accident this was clashing with another driver. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Cc: <[email protected]>
* st/mesa: always allocate pack/unpack buffers as stagingMarek Olšák2019-10-151-8/+6
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* gallium/xlib: Fix xmesa drawable creationAdam Jackson2019-10-151-6/+2
| | | | | | | | | | | | | | The first time you call glXMakeCurrent, current != ctx. As a result we would never look up whether the drawable already had an XMesaDrawable, and would instead always create one. Then XMesaBufferList would have two different buffers for the same XID, and you'd be reading and drawing to different places, and that's not what you want at all. Instead just always look up the drawable. Fixes: db8be355 (gallium/xlib: Remove drawable caching from the MakeCurrent path) Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1196 Reviewed-by: Michel Dänzer <[email protected]>
* gitlab-ci: set a common job parent for test stageEric Engestrom2019-10-152-6/+9
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
* gitlab-ci: set a common job parent for build stageEric Engestrom2019-10-152-12/+8
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
* gitlab-ci: set a common job parent for container stageEric Engestrom2019-10-152-10/+13
| | | | | | | While at it, rename to singular "container" for consistency. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
* Revert "radv: do not emit PKT3_CONTEXT_CONTROL with AMDGPU 3.6.0+"Samuel Pitoiset2019-10-152-12/+6
| | | | | | | | | | | | | | This reverts commit 2ca8629fa9b303e24783b76a7b3b0c2513e32fbd. This was initially ported from RadeonSI, but in the meantime it has been reverted because it might hang. Be conservative and re-introduce this packet emission. Unfortunately this doesn't fix anything known. Cc: 19.2 <[email protected]> Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* spirv: set correct dest_type for texture query opsJonathan Marek2019-10-151-7/+17
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
* turnip: more descriptor setsJonathan Marek2019-10-156-50/+250
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: push constantsJonathan Marek2019-10-153-11/+50
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: depth/stencilJonathan Marek2019-10-153-20/+95
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: basic msaa workingJonathan Marek2019-10-154-20/+67
| | | | | | | Not perfect but gets through some tests. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: improve CmdCopyImage and implement CmdBlitImageJonathan Marek2019-10-158-590/+526
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: use nir_assign_io_var_locations instead of nir_assign_var_locationsJonathan Marek2019-10-151-6/+2
| | | | | | | Variables with same location should use the same driver_location. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add missing nir passesJonathan Marek2019-10-151-5/+50
| | | | | | | Avoids assert fails in ir3. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add code to lower indirect samplersJonathan Marek2019-10-151-14/+63
| | | | | | | | Taken from nir_lower_samplers. Sampler arrays don't work though, this is just to avoid an assert fail in ir3. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fixup constsJonathan Marek2019-10-152-5/+6
| | | | | | | Fix some mistakes in previous series. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: update some shader state bits from GL driverJonathan Marek2019-10-151-68/+80
| | | | | | | Notably includes centroid varying bits that were missing. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Emit clears of gmem using linear.Eric Anholt2019-10-151-1/+1
| | | | | | This is what we do in freedreno. Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Set up the correct tiling mode for small attachments.Eric Anholt2019-10-153-3/+17
| | | | | | | Noticed while debugging a tiling-looking issue by comparing our gmem blit setup to freedreno's. Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Tell spirv_to_nir that we want fragcoord as a sysval.Eric Anholt2019-10-151-0/+1
| | | | | | | | Fixes ir3 compiler failure failure in dEQP-VK.renderpass.dedicated_allocation.formats.r8g8b8a8_unorm.clear.clear_draw (now just a rendering failure where the subpass clear isn't happening) Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Fill in clear color packing for r10g11b11 and rgb9e5.Eric Anholt2019-10-151-0/+13
| | | | | | | | Fixes assertion failures in dEQP-VK.api.image_clearing.core.clear_color_image.2d.* for these formats, though the test set as a whole is stil failing. Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Drop unused tu_pack_clear_value() return.Eric Anholt2019-10-152-4/+2
| | | | Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add anisotropy and compressed formats to device featuresJonathan Marek2019-10-151-4/+4
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: disable tiling as necessaryJonathan Marek2019-10-151-3/+12
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: update setup_slicesJonathan Marek2019-10-153-49/+64
| | | | | | | | Deal with tiled r8g8 having different alignment and other updates taken from fd6_resource. Additionally track image samples/cpp. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add VK_KHR_sampler_mirror_clamp_to_edgeJonathan Marek2019-10-151-0/+1
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add black border colorJonathan Marek2019-10-151-1/+30
| | | | | | | Avoids hangs and some texture tests are happy with just this. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: improve sampler descriptorJonathan Marek2019-10-151-11/+11
| | | | | | | Fixes anisotropy and shadow texture Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: improve view descriptorJonathan Marek2019-10-151-33/+51
| | | | | | | Changes to make compressed, tiled, 3d, etc textures work Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add more 2d_ifmt translationsJonathan Marek2019-10-151-9/+8
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: format table fixesJonathan Marek2019-10-151-19/+12
| | | | | | | | | | | * Fix R16G16 SCALED and R16G16B16A16 SCALED having texture format * Fix B5G6R5 swap value * Use R8_UINT instead of R8_UNORM for S8_UINT rb format * Disable 96-bit texture formats instead having a check for NPOT formats * Don't fail assert on D24X8 format Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add format_is_uint/format_is_sintJonathan Marek2019-10-151-0/+22
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add astc format layoutJonathan Marek2019-10-151-28/+28
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix assert failing for 0 color attachmentsJonathan Marek2019-10-151-2/+2
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix segmentation fault with compute pipelineJonathan Marek2019-10-151-1/+1
| | | | | | | Not supported, so always set pointer to NULL Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix segmentation fault in eventsJonathan Marek2019-10-152-4/+18
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix 32 vertex attributes caseJonathan Marek2019-10-151-3/+2
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix triangle stripJonathan Marek2019-10-151-1/+1
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* freedreno/regs: update a6xx 2d blit bitsJonathan Marek2019-10-151-22/+30
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* radv: rename VK_KHR_shader_float16_int8 structs/constantsSamuel Pitoiset2019-10-151-3/+3
| | | | | | | Trivial change. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* v3d: drop unused shader_rec_count member from contextIago Toral2019-10-152-3/+0
| | | | | | | Looks like this was copied from the vc4 driver where it is actually included in the submit CL ioctl. Reviewed-by: Eric Anholt <[email protected]>
* freedreno/ir3: implement fquantize2f16Jonathan Marek2019-10-141-0/+5
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: implement texop_texture_samplesJonathan Marek2019-10-141-5/+9
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: fix GETLOD for negative LODsJonathan Marek2019-10-141-2/+2
| | | | | | | Note: for output type U32, negative LOD is not sign extended from 16 bits Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: implement fdd{x,y}_coarse opcodesJonathan Marek2019-10-141-0/+2
| | | | | | | Same as regular fddx/fddy. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: increase size of inputs/outputs arraysJonathan Marek2019-10-141-2/+2
| | | | | | | Makes it possible to support 32 varyings. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>