- Feb 05, 2022
-
-
Yiwei Zhang authored
This is some leftover from the get_blob_done cleanup. Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
- Jan 28, 2022
-
-
Ryan Neph authored
Signed-off-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
- Jan 21, 2022
-
-
Cristian Ciocaltea authored
Temporarily disable the old CI configuration file and replace it with the one belonging to the reworked CI infrastructure. The project CI/CD settings should be updated in order to switch 'CI/CD configuration file' from 'ci/.gitlab-ci.yml' to the default '.gitlab-ci.yml', for consistency with Mesa CI. Note the 'ci/' folder becomes obsolete in favor of '.gitlab-ci/' and could be removed once all needed functionality has been migrated to the new setup. Signed-off-by:
Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Reviewed-by:
Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by:
Rohan Garg <rohan.garg@intel.com>
-
Cristian Ciocaltea authored
Add initial support for reusing the Mesa CI infrastructure. Note this doesn't conflict with the old CI since it doesn't share the 'ci/' folder, but instead uses '.gitlab-ci/', which makes the new setup consistent with Mesa CI. Signed-off-by:
Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Reviewed-by:
Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by:
Rohan Garg <rohan.garg@intel.com>
-
- Jan 19, 2022
-
-
Chia-I Wu authored
It is to avoid integer overflows and to catch bogus allocations (e.g., the guest driver encodes an uninitialized value). Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
Chia-I Wu authored
Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
Chia-I Wu authored
Log fatal errors internally generated by vkr_cs. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
Chia-I Wu authored
v2: vrend_print need '\n' (Yiwei) Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
Using a pointer for fs_info in the shader key is not really that useful because the contents of the structure can change even though the pointer remains the same, and the pointer can be different when the contents are the same. Fixes 5f488ed0 Signed-off-by:
Italo Nicola <italonicola@collabora.com> Tested-by:
Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- Jan 15, 2022
-
-
Gert Wollny authored
With GLES we always set the correct binding if dual source blend is disabled, with OpenGL we still have to do this to handle outputs that might be optimized away. v2: Fix comment (Yiwei Zhang) Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
- Jan 14, 2022
-
-
Andrii Pauk authored
This is a fix for segfault issue, because of usage of uninitialized vkQueue handle. Spec [1] states that vkGetDeviceQueue must only be used to get queues that were created with the flags parameter of VkDeviceQueueCreateInfo set to zero. To get queues that were created with a non-zero flags parameter use vkGetDeviceQueue2. The problem that in case queue was created with flags set to zero following vkGetDeviceQueue2 call will fail. By failing I mean that pQueue set to NULL, which later leads to segfault. This problem was also reported by vulkan validation layer: vkr: vkGetDeviceQueue2: value of pQueueInfo->flags must not be 0. The Vulkan spec states: flags must not be 0 (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkDeviceQueueInfo2-flags-requiredbitmask) [1]: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetDeviceQueue.html Signed-off-by:
Andrii Pauk <Andrii.Pauk@opensynergy.com> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Gert Wollny authored
Clean up the code a bit and only try to read the primitive type for point mode if the prev shader really exists. This fixes a VM crash when running the GLES 3.1 cts. Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
John Bates <jbates@chromium.org>
-
- Jan 11, 2022
-
-
Fixes a compile error: vrend_compile_shader: context error reported 7 "deqp-gles31" Illegal shader 0 shader failed to compile 0:3(33): error: GL_ARB_gpu_shader5 invocations qualifier specified 1: #version 150 2: #extension GL_ARB_shader_bit_encoding : require 3: layout(triangles, invocations = 2) in; 4: layout(points, max_vertices = 3) out; ... Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
John Bates <jbates@chromium.org>
-
If we always emit the glip distance in GS we might end up having too many outputs, which will result in failures. Hence, for GS only emit the clip distance evaluation code when the clip planes are enabled. Fixes: 072f3095 shader: Always write code to toggle clip plane Closes: #254 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Italo Nicola <italonicola@collabora.com>
-
If we receive a link command without a VS or FS, just early exit to avoid doing extra work. Signed-off-by:
Italo Nicola <italonicola@collabora.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- Jan 07, 2022
-
-
Chia-I Wu authored
No more confusing zombie processes. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Chia-I Wu authored
Now that render_worker_jail tracks workers, the apis are simplified such that - render_worker_create forks a subprocess - render_worker_destroy kills a subprocess - render_worker_jail_reap_workers reaps all exited subprocesses Also add render_worker_jail_detach_workers that can be called by a forked subprocess to "detach" (free without killing/reaping) workers. v2: replace some checks for worker->{destroyed,reaped} by asserts (Ryan) Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> (v1) Reviewed-by: Ryan Neph <ryanneph@google.com> (v1)
-
Chia-I Wu authored
Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Chia-I Wu authored
Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Chia-I Wu authored
It contains only struct minijail, but we plan to add more fields to it. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Chia-I Wu authored
Add render_client_detach_all_records to "detach" context records from the child process before returning from render_client_create_context. "Detaching" means destroying records without killing nor reaping the workers. This makes it clearer how context records are destroyed in subprocesses. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Chia-I Wu authored
Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Chia-I Wu authored
Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
Yiwei Zhang authored
This is to prepare for extension cleanup and autogen. Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
- Jan 05, 2022
-
-
Gert Wollny authored
If we come from link_shader it may be possible that no VS or no FS are defined, because the guest uses a legacy contexts and the missing shaders will only be defined at draw time. So drop the warning, it is already written from vrend_draw_vbo where it is actually relevant. Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Gert Wollny authored
With the link_shader command we might end up calculating shader keys without the full draw info being available, specifically, without the vertex element array being defined. Skip querying the integer masks in this case. v2: Fix extra line (Yiwei) Fixes: #664 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
- Dec 27, 2021
-
-
Signed-off-by:
Yonggang Luo <luoyonggang@gmail.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- Dec 20, 2021
-
-
Chia-I Wu authored
To work around a Mali bug, which does not like waitAll to be false when the fence is external. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com>
-
- Dec 17, 2021
-
-
This fixes an issue where a shader would be emitted using EXT_clip_cull_distance even if the host didn't support the extension. Fixes 072f3095 Signed-off-by:
Italo Nicola <italonicola@collabora.com> Reviewed-by:
John Bates <jbates@chromium.org> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
- Dec 16, 2021
-
-
Yiwei Zhang authored
Use virgl_resource_get_size to fill the size so that supported classic 3d resource can have a valid size as well. This change also links venus .clang-format into server and proxy. Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Yiwei Zhang authored
Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Yiwei Zhang authored
This adds get_size to the virgl_resource_pipe_callbacks with a vrend_pipe_resource_get_size for vrend. Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Yiwei Zhang authored
vkr no longer needs it to support transfer_3d. Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Yiwei Zhang authored
Venus does not do transfers at all. Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
Yiwei Zhang authored
Signed-off-by:
Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by:
Chia-I Wu <olvaffe@gmail.com>
-
- Dec 15, 2021
-
-
The old implementation of vrend_add_formats used to check color readback format even if a depth buffer is bound. As no texture is attached to the color buffer for such a FBO, it makes glGetIntegerv with GL_IMPLEMENTATION_COLOR_READ_TYPE fail, and the error can trigger the GL_NO_ERROR assertion in the function. Check only if the depth buffer can be read in such a case. Signed-off-by:
Akihiko Odaki <akihiko.odaki@gmail.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Chia-I Wu authored
Pre-init virglrenderer only when tracing is disabled, otherwise perfetto might get confused. Do a vkEnumerateInstanceExtensionProperties to preload Vulkan ICDs. "time for i in `seq 100`; do vulkaninfo > /dev/null; done" goes from 0m5.895s to 0m5.535s. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
- Dec 14, 2021
-
-
Chia-I Wu authored
This redirects virglrenderer logs to syslog. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
Chia-I Wu authored
As a daemon, let's log to syslog (and stderr). Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-
Chia-I Wu authored
We lose the "proxy: " prefix, but we can live with it. Signed-off-by:
Chia-I Wu <olvaffe@gmail.com> Reviewed-by:
Ryan Neph <ryanneph@google.com> Reviewed-by:
Yiwei Zhang <zzyiwei@chromium.org>
-