aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* virgl: set PIPE_CAP_BLEND_EQUATION_ADVANCEDElie Tournier2020-07-171-0/+2
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* virgl: Encode barrier for blend_equation_advancedElie Tournier2020-07-171-1/+2
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* virgl: Use alpha_src_factor to store blend_equation_advenced valueElie Tournier2020-07-173-1/+12
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* glsl_to_ir: do lower_blend_equation if PIPE_CAP_FBFETCHElie Tournier2020-07-171-1/+1
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* st: expose KHR_blend_equation_advanced if PIPE_CAP_BLEND_EQUATION_ADVANCEDElie Tournier2020-07-171-0/+3
| | | | | | | | | | With virgl, we want to expose KHR_blend_equation_advanced even if EXT_shader_framebuffer_fetch is not available. Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* gallium: Add PIPE_CAP_BLEND_EQUATION_ADVANCEDElie Tournier2020-07-173-0/+6
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* virgl: Reserved last caps of capability_bitsElie Tournier2020-07-171-0/+1
| | | | | | | | | This cap is used by virglrenderer but not by Mesa. Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* glsl_to_tgsi: Set TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCEDElie Tournier2020-07-171-0/+6
| | | | | | | | | | | In virgl, when fbfetch extention is not available but blend_equation_advanced is, we didn't call lower_blend_equation_advanced. So we need to pass the blend value to the host in order to recreate the shader correctly. Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* gallium: add TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCEDElie Tournier2020-07-172-0/+2
| | | | | | | | | | For virgl, we don't lower advanced equation to fbfetch So we need to pass the blend equation info in the TGSI to the host Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* mesa: treat Color._AdvancedBlendMode as enumErik Faye-Lund2020-07-174-4/+8
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* mesa: do not use bitfields for advanced-blend stateErik Faye-Lund2020-07-174-39/+34
| | | | | | | Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
* st/mesa: fix st_CopyPixels without support for stencil exportsKarol Herbst2020-07-171-0/+7
| | | | | | | | Fixes: f611af35948e ("st/mesa: use fragment shader to copy stencil buffer") Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5940>
* nvc0_2d: Document SET_PIXELS_FROM_MEMORY_CORRAL_SIZE from rnndbRhys Kidd2020-07-172-3/+5
| | | | | | | | | | Present in both cl502d and cl902d. Based on envytools commit 889f8fb4445863c19336c31dd13ecbdd3b19a196 Signed-off-by: Rhys Kidd <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5922>
* nv50_2d,nvc0_2d: Document SET_PIXELS_FROM_MEMORY_SAFE_OVERLAP from rnndbRhys Kidd2020-07-173-4/+4
| | | | | | | | | | Present in both cl502d and cl902d. Based on envytools commit 0b9d3e717828a06be6937395464c34dfc870a6dc Signed-off-by: Rhys Kidd <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5922>
* egl: mark the rest of the callbacks as mandatory or optionalEric Engestrom2020-07-161-0/+10
| | | | | | | | Suggested-by: Frank Binns <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: drop now empty egl_dri2_fallbacks.hEric Engestrom2020-07-1610-41/+1
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for get_sync_valuesEric Engestrom2020-07-169-15/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for create_wayland_buffer_from_imageEric Engestrom2020-07-1610-18/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for query_buffer_ageEric Engestrom2020-07-167-12/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for copy_buffersEric Engestrom2020-07-169-15/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for post_sub_bufferEric Engestrom2020-07-1610-16/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for swap_buffers_regionEric Engestrom2020-07-1610-16/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for swap_buffers_with_damageEric Engestrom2020-07-168-16/+6
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: drop unused fallback functionEric Engestrom2020-07-161-9/+0
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for create_pbuffer_surfaceEric Engestrom2020-07-165-11/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* egl: inline fallback for create_pixmap_surfaceEric Engestrom2020-07-166-12/+3
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Frank Binns <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
* driconf: allowlist/denylistRob Clark2020-07-161-2/+2
| | | | | | | | I think this is the one user facing use of blacklist/whitelist. But we like all of our users, so lets be more inclusive. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5938>
* pan/decode: Open the dump file laterIcecream952020-07-163-4/+9
| | | | | | | | | Opening the dump file in pandecode_jc instead of doing it in pandecode_next_frame avoids creating zero sized files when applications exit. Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5931>
* radv: split fence into two parts as enum+union.Samuel Pitoiset2020-07-164-116/+231
| | | | | | | | To be consistent with semaphores and for clean up. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921>
* radv: optimize creating signaled syncobj with amdgpu_cs_create_syncobj2()Samuel Pitoiset2020-07-163-16/+29
| | | | | | | | | This creates a syncobj and sets it as signaled with one ioctl instead of two. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921>
* radv: fix the error code when allocating a fresh imported syncobj failsSamuel Pitoiset2020-07-161-1/+1
| | | | | | | | It can only be an OOM error. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921>
* radv: fix the error code when exporting a semaphore/fence failsSamuel Pitoiset2020-07-161-17/+19
| | | | | | | | | | VK_ERROR_INVALID_EXTERNAL_HANDLE is not a valid Vulkan error code for these functions and it's likely that too many objects are created instead. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921>
* radv: fix destroying the syncobj when exporting a fence FDSamuel Pitoiset2020-07-161-1/+1
| | | | | | | | | It's invalid and the temporary syncobj was never actually destroyed. Cc: 20.1 <[email protected]> Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921>
* tu: Enable VK_EXT_shader_stencil_exportConnor Abbott2020-07-163-4/+8
| | | | | | | | This passes the grand total of 3 CTS tests (2 actually enabled due to missing D32_SFLOAT_S8_UINT support) under dEQP-VK.pipeline.shader_stencil_export.* Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5936>
* ir3: Handle gl_FragStencilRefARBConnor Abbott2020-07-162-1/+4
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5936>
* freedreno/a6xx: Add stencilref register infoConnor Abbott2020-07-161-1/+2
| | | | | | Found by guessing. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5936>
* panfrost: Revert "Disable frame throttling"Alyssa Rosenzweig2020-07-161-3/+0
| | | | | | | | | | | | | | This reverts commit 4fee7b30c0ecc56d7659ecad1d8b140ab253f0db, which was intended to be a temporary workaround for a leak introduced in a65e29ccb26 ("gallium: simplify throttle implementation"). However, that leak was then fixed in 023282a4f667695ea1dbbe9fbe1cd3a9d550a426 and we forgot to revert this hack. Closes: #2108 Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Enable ChromiumAlyssa Rosenzweig2020-07-161-12/+0
| | | | | | | | With the latest batch of fixes, Chromium works (including WebGL support, although performance is still WIP). Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Report CAPs more honestlyAlyssa Rosenzweig2020-07-162-70/+46
| | | | | | | | | | We're overreporting on some chips and underreporting on others. Let's be more honest. This exposes OpenGL ES 3.0 on Mali T760 through T860. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Fix faults with RASTERIZER_DISCARDAlyssa Rosenzweig2020-07-161-1/+9
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Honour cso->compare_modeAlyssa Rosenzweig2020-07-161-1/+3
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Avoid integer underflow in rt_count_1Alyssa Rosenzweig2020-07-161-1/+1
| | | | | | | | If rt_count = 0, this underflows to MAX_MRT. The hw doesn't seem to care but it's semantically incorrect and confuses pandecode. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Abort on unsupported blitAlyssa Rosenzweig2020-07-161-10/+2
| | | | | | | Instead of silently failing. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Implement Z32F_S8 blitsAlyssa Rosenzweig2020-07-162-3/+13
| | | | | | | | | | Requires the ability to texture the stencil-only portion, and then u_blitter kicks in for the rest. v2: Fix dEQP-GLES31.functional.stencil_texturing.* Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Fix sRGB clear colour packingAlyssa Rosenzweig2020-07-161-1/+1
| | | | | | | | It should be sRGB transformed first, which the generic path handles but the RGBA8 special path does not. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Set PIPE_CAP_MIXED_COLORBUFFER_FORMATSAlyssa Rosenzweig2020-07-161-0/+1
| | | | | | | Missed that this is needed, fixes fbo.completeness.* Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Overhaul tilebuffer allocationsAlyssa Rosenzweig2020-07-161-13/+27
| | | | | | | | | | | | | | | Based on the colour buffers in use, we need to select a tile size allowing either 128-bits of storage per pixel or 512-bits. Based on the size chosen, we scale the offsets into the tilebuffer. Likewise, we need to calculate offsets based on bpp (with special cases) rather than picking an average case. Fixes regressions that otherwise would be caused by the next commit. v2: Fix colour clears (Icecream95). Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* panfrost: Call util_blitter_save_fragment_constant_buffer_slotAlyssa Rosenzweig2020-07-161-0/+2
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
* llvmpipe: fix position offset interpolationDave Airlie2020-07-171-4/+4
| | | | | | | | | | | | pos offset only applies to the gl_FragPos input, when I refactored I messed that up, only use pos_offset for the position inputs and use 0.5 otherwise. This fixes: GTF-GL45.gtf30.GL3Tests.fragment_coord_conventions.fragment_coord_conventions_multisample Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5926>
* llvmpipe: fix stencil only formats.Dave Airlie2020-07-171-0/+3
| | | | | | | | | | | | | | Currently the test crashes with LLVM errors Stored value type does not match pointer operand type! store <8 x i32> %s_dst, <8 x i8>* %261 Change the stored type for 8-bit stencil formats. Fixes: GTF-GL45.gtf44.GL31Tests.texture_stencil8.texture_stencil8_gl44 Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5926>