summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-06-30Uprev Mesa to eeb6515096481d8e8a66f6d76a050e69716d791aHEADmasterCollabora's Gfx CI Team5-14/+2
https://gitlab.freedesktop.org/mesa/mesa/-/compare/99502b42b4d09195ba404173baa92d12216b6a96...eeb6515096481d8e8a66f6d76a050e69716d791a Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1173>
2023-06-29format: drop ALPHA 16F and 32F emulation on coreGert Wollny5-62/+0
This fixes a few related piglits. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1174>
2023-06-29formats: Unify handling of LA formatsGert Wollny2-52/+57
With that we first try the ARB formats, and then, if the according entry was not created, we try an emulation. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1174>
2023-06-29vrend: rework the TBO swizzle shader key evaluationGert Wollny1-103/+107
Use forced swizzles up-front, and only skip over some compat profile formats. v2: use exact swizzle type and array sizes Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1174>
2023-06-29vrend: Mark shader dirty when we bind a TBOGert Wollny1-0/+1
We may have to update the shader to handle the swizzling for emulated formats Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1174>
2023-06-29vrend: Add mapping for Alpha 16F and Alpha 32F TBO formatGert Wollny1-0/+2
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1174>
2023-06-28vrend: Add a new mode for virgl fuzzer testDawn Han1-4/+56
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1129>
2023-06-27Uprev Mesa to 99502b42b4d09195ba404173baa92d12216b6a96Collabora's Gfx CI Team2-7/+2
https://gitlab.freedesktop.org/mesa/mesa/-/compare/f18afc886a793e53fec8063dc6543b8231ab2f16...99502b42b4d09195ba404173baa92d12216b6a96 Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1156>
2023-06-26vrend/egl: allow EGL fencing for OpenGL contextsRyan Neph2-3/+2
I cannot find any limitation in EGL_KHR_fence_sync or EGL_ANDROID_native_fence_sync that limits our abilty in vrend to support EGL fencing for OpenGL contexts (in addition to GLES contexts, which vrend already supports). EGL_ANDROID_native_fence_sync is critical for providing virgl_renderer_export_fence()-like functionality, which is interesting for obtaining a sync_file fd exported from a rendering context to give to the host compositor (one half of explicit fencing for WSI). Signed-off-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1168>
2023-06-26vrend/egl: ensure pre-signaled native fence is created before exportRyan Neph1-0/+3
EGL_ANDROID_native_fence_sync expects that a context Flush() has occured before an attempt to eglDupNativeFenceFDANDROID(). vrend is missing that explicit flush for the sole pre-signaled fence. On Gallium drivers, the dri frontend forces a flush during eglCreateSyncKHR, but that is implementation-defined behavior that should not be relied upon. Fixes: 313f1cc8879c ("vrend: add support for exporting egl fences") Signed-off-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1168>
2023-06-23drm: use state.drm_initialized for reset/fini/capsetsYiwei Zhang1-3/+6
This is to avoid log spam and stay consistent with other ctx. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1169>
2023-06-23ci: Update mesa versionCorentin Noël5-4/+18
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1170>
2023-06-20ci: Enable GL 4.3 tests on GL hosts via vtestGert Wollny3-383/+2
Since in the GL CTS each set set for a certain version inherits all the tests for older versions, we can actually drop all previous versiond and run only the GL 4.3 set. Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1167>
2023-06-20vrend: Correctly apply texture levels for texture viewsGert Wollny2-5/+6
Either we limit the levels by using the parameters in the texture view or we set the parameters GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MAX_LEVEL. Since the latter would result in ugly if-else statements, we stick to the texture view. This fixes the CTS test KHR-GL43.texture_view.view_sampling It fixes also most of the rendering of GravityMark. Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8339 Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1166>
2023-06-20vrend: Add a few more swizzles to texture buffer fetchesGert Wollny1-0/+35
For some reason these don't seem to happen automatically, so add the fill values for these textures. Fixes KHR-GL43.shader_image_load_store.advanced-sync-imageAccess Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1166>
2023-06-18drm: fix build failure and misc .clang-format issueYiwei Zhang2-3/+2
drm_log relies on -Wgnu-zero-variadic-macro-arguments ignored. Fixes: 060f4481 ("drm: Silence GCC warnings") Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1165>
2023-06-18vtest: fix -Wstrict-prototypes build failureYiwei Zhang1-1/+1
Fixes: 7f644a81 ("Revert "meson: tighten up compile warnings with -Werror=all"") Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1165>
2023-06-16vkr: properly bail physical device group enumeration failureYiwei Zhang1-2/+14
Updated comments around as well, and left a TODO to fix it. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1163>
2023-06-16vkr: refactor vkr_dispatch_vkAllocateMemoryYiwei Zhang1-37/+31
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1163>
2023-06-15ci: Build everything with werror=trueCorentin Noël1-0/+2
Allows to make sure that we are not having any compiler warning with our own compiler target. Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1159>
2023-06-15Revert "meson: tighten up compile warnings with -Werror=all"Corentin Noël1-1/+8
Meson has built-in support to for Werror This reverts commit 3967afc060cd8a19e825235ffc6501c0ee538a35. Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1159>
2023-06-15fuzzer: Ensure strict prototypes of all functionsCorentin Noël2-21/+21
Allows to turn -Wstrict-prototypes by default in virglrenderer. Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1159>
2023-06-15util: Ignore pedantic warnings for sysprofCorentin Noël1-0/+3
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1159>
2023-06-15shader: Update last image index also for created arraysGert Wollny5-9/+4
Remove an unnecessary type cast as well. v2: Update expectations Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1157>
2023-06-14vrend: fix missed flagging as GBM_BUFFER on early-returnRyan Neph1-1/+2
A recent refactor incorrectly moved GBM_BUFFER flagging after a non-error early-return in vrend_resource_gbm_init. Fixes: 511f450642 ("Fix vrend_resource_gbm_init() error handling") Signed-off-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1162>
2023-06-14vkr: validate memoryTypeIndexYiwei Zhang1-0/+5
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1161>
2023-06-14ci: Add build job for minigbm_allocationsCorentin Noël1-0/+34
Allows to make sure that it always builds. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1160>
2023-06-14vrend: keep fd during set_type resource promotionRobert Beckett3-5/+8
Keep the fd during set_type resource promotion to allow it to be exported during vkAllocateMemory dispatch and directly scanned out via dmabuf. Allow resource info to expose the fd directly. This allows vmm to directly scanout blob resources via the dmabuf fd. This fixes the use case of qemu guest running gamescope + kmscube. This was tested with a qemu change to land after this to scanout via the fd. Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/967>
2023-06-13shader: Set coherent image qualifier for coherent atomic image opsGert Wollny1-0/+3
This fixes a bunch of tests from dEQP-GLES31.functional.image_load_store.*.atomic.comp_swap_* Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1158>
2023-06-12Revert "vrend: we only need call glFlush for glFenceSync"Lepton Wu1-1/+1
This reverts commit fcc0b80d501048df51255b99e2b769e3c48fa576. Signed-off-by: Lepton Wu <lepton@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1155>
2023-06-12vrend: we only need call glFlush for glFenceSyncLepton Wu1-1/+1
Signed-off-by: Lepton Wu <lepton@chromium.org> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1153>
2023-06-12vrend/egl: Fix compilation in case minigbm_allocations is enabledGert Wollny1-1/+1
Fixes: fbe43dae8b0bb17e283aecb084a3442e2e04709d egl: refactor EGL extensions initialization Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1151>
2023-06-12ci: Build with drm/msm and all profilersCorentin Noël1-0/+69
Enable the options to make sure that the code is building. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1148>
2023-06-12ci: Allow to modify wrap mode and tracingCorentin Noël1-1/+2
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1148>
2023-06-12meson: Allow to include any profiler during the build as a dependencyCorentin Noël6-1/+71
This allows anyone to easily test that the profiler backend is actually building. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1147>
2023-06-12Uprev Mesa to 926e97d5df203fe19a2498e6a84335dedbab382eSergi Blanch Torne6-17/+17
https://gitlab.freedesktop.org/mesa/mesa/-/compare/6d013d1f13a0040b65ef9a76234e80865d966b2a...926e97d5df203fe19a2498e6a84335dedbab382e The refactor on the architecture naming convention changed the mesa artifact from the `debian-testing` build job. Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1144>
2023-06-09shader: Do some basic sanity checks in emit_ios and return early on failureCorentin Noël1-0/+21
Allows to just reject the shader in case the provided shader is corrupted. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1143>
2023-06-09shader: Specify the size of the front_back_color_emitted_flags arrayCorentin Noël1-5/+5
Allows to always have the size of the array in mind and get some more guarantees from the compiler. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1143>
2023-06-08vrend: align glsl_name length to avoid format-truncation warningYiwei Zhang1-1/+1
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1150>
2023-06-08util: suppress unused param warning without PIPE_ARCH_SSEYiwei Zhang1-1/+1
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1149>
2023-06-08vkr: enable VK_EXT_color_write_enableJuston Li2-0/+14
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: enable VK_EXT_shader_subgroup_ballotJuston Li1-0/+1
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: enable VK_EXT_fragment_shader_interlockJuston Li1-0/+1
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: enable VK_EXT_border_color_swizzleJuston Li1-0/+1
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: enable VK_KHR_shader_clockJuston Li1-0/+1
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: enable VK_EXT_dynamic_rendering_unused_attachmentsJuston Li1-0/+1
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: enable VK_EXT_non_seamless_cube_mapJuston Li1-0/+1
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: sync protocol for multiple extensions for zinkJuston Li9-9/+1138
- VK_EXT_non_seamless_cube_map - VK_EXT_dynamic_rendering_unused_attachments - VK_KHR_shader_clock - VK_EXT_border_color_swizzle - VK_EXT_fragment_shader_interlock - VK_EXT_shader_subgroup_ballot - VK_EXT_color_write_enable Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08vkr: sync to latest protocol header from v1.3.252Juston Li5-201/+2309
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1146>
2023-06-08CI: enable more testGert Wollny2-6/+0
Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1145>