- 12 Feb, 2020 1 commit
-
-
When there is no feat_dual_src_blend, avoid calling glBindFragDataLocationIndexed. Otherwise epoxy could crash the whole process when this function is not available. Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
- 11 Feb, 2020 1 commit
-
-
Gurchetan Singh authored
Internal format here doesn't matter. Reviewed-by:
Jason Macnak <jmacnak@gmail.com>
-
- 07 Feb, 2020 1 commit
-
-
This will allow additional formats to be reported as supported in caps when gbm allocation is enabled (VIRGL_FORMAT_NV12/VIRGL_FORMAT_YV12).
-
- 30 Jan, 2020 1 commit
-
-
Lepton Wu authored
One bug was found when running dEQP-GLES3.functional.fragment_out.random.*. If run them one by one, they pass. If run them all together, some cases fails. The fix is: when independent_blend_enable changes from true to false, we should call glColorMask, otherwise color masks for some color buffers could stay in stale states. Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 29 Jan, 2020 1 commit
-
-
Lepton Wu authored
This causes use after free. Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
David Riley <davidriley@chromium.org>
-
- 28 Jan, 2020 1 commit
-
-
Lepton Wu authored
Change to use eglWaitSyncKHR which is a server side fence and it could be sightly better. Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
David Riley <davidriley@chromium.org>
-
- 26 Jan, 2020 2 commits
-
-
Lepton Wu authored
When switching context, if we want to use shared objects from previous context, we need to insert glWaitSync to make sure the GL commands are executed in sequences. This fixes 8 dEQP tests on mali: dEQP-GLES2.functional.texture.mipmap.2d.generate.a8_fastest dEQP-GLES2.functional.texture.mipmap.2d.generate.a8_nicest dEQP-GLES2.functional.texture.mipmap.cube.generate.a8_fastest dEQP-GLES2.functional.texture.mipmap.cube.generate.a8_nicest dEQP-GLES2.functional.texture.specification.basic_copyteximage2d.2d_rgb dEQP-GLES2.functional.texture.specification.basic_copyteximage2d.cube_rgb dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.2d_rgb dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.cube_rgb Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Lepton Wu authored
This was hard coded as zero before and can't be changed at runtime. Change to use the "VREND_DEBUG" environment variable to control this behavior. Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 23 Jan, 2020 3 commits
-
-
Lepton Wu authored
Container objects like framebuffers are not shared between contexts and we have to delete them in the original context. Otherwise we could delete wrong objects which is in using by others. Signed-off-by:
Lepton Wu <lepton@chromium.org> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Gert Wollny authored
Closes #155 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
Gert Wollny authored
The structure is allocated outside this function and also deleted there if texture creation failes or it is asserted that it doesn't fail for intermediate blitting textures. Therefore, don't free the struct inside this function when allocation fails. Closes #154 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 17 Jan, 2020 1 commit
-
-
Closes #153 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Tested-by:
Christian Ehrhardt <christian.ehrhardt@canonical.com>
-
- 10 Jan, 2020 1 commit
-
-
Disable VREND_STORAGE_GL_IMMUTABLE when feat_egl_image_storage is unavailable Regression was introduced by !269 (comment 377300) Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
- 26 Dec, 2019 1 commit
-
-
Lepton Wu authored
The old code is buggy and set numlayers to 1 for GL_TEXTURE_2D_ARRAY when creating the view. Just change to use array_size directly. This fixes such tests in CtsNativeHardwareTestCases: android.hardware.nativehardware.cts.AHardwareBufferNativeTests#MultipleLayers_ColorTest_MipmapComplete_GL_RGB10_A2 android.hardware.nativehardware.cts.AHardwareBufferNativeTests#MultipleLayers_ColorTest_MipmapComplete_GL_RGB8 android.hardware.nativehardware.cts.AHardwareBufferNativeTests#MultipleLayers_ColorTest_MipmapComplete_GL_RGBA16F android.hardware.nativehardware.cts.AHardwareBufferNativeTests#MultipleLayers_ColorTest_MipmapComplete_GL_RGBA8 android.hardware.nativehardware.cts.AHardwareBufferNativeTests#MultipleLayers_ColorTest_MipmapComplete_GL_SRGB8_ALPHA8_sRGB Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org> Signed-off-by:
Lepton Wu <lepton@chromium.org>
-
- 12 Dec, 2019 3 commits
-
-
Gurchetan Singh authored
Do the same thing we do with regular textures, and swap the R and B color channels. TEST=Portal, HL2 have better lighting in Crostini Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Gurchetan Singh authored
Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Gurchetan Singh authored
Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 06 Dec, 2019 1 commit
-
-
Marc-André Lureau authored
Fixes: warning: unused variable ‘src_fmt’ [-Wunused-variable] Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 05 Dec, 2019 1 commit
-
-
Gurchetan Singh authored
With the prior patch and without this one, I get ../src/.libs/libvrend.a(vrend_renderer.o): In function `vrend_format_can_scanout': src/vrend_renderer.c:703: undefined reference to `gbm' src/vrend_renderer.c:703: undefined reference to `gbm src/vrend_renderer.c:706: undefined reference to `gbm' ../src/.libs/libvrend.a(vrend_renderer.o): In function `vrend_resource_gbm_init': /virglrenderer/src/vrend_renderer.c:6337: undefined reference to `gbm' /virglrenderer/src/vrend_renderer.c:6337: undefined reference to `gbm' Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 04 Dec, 2019 2 commits
-
-
Gurchetan Singh authored
This is internal to virglrenderer, so it should probably be here. Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Gurchetan Singh authored
It's a bit misleading currently. For example, all resources have guest memory associated with them, and resource can be both a GL texture and GBM buffer at the same time. Use bits to more accurately capture this. No functional change. Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 28 Nov, 2019 1 commit
-
-
Gert Wollny authored
We don't know whether the caller cleans up the error states they are responsible for, so do this here. This is needed to correctly query some features, because otherwise checks that rely on correct error reporting might give the wrong result. v2: Log stale error codes (Gurchetan) Closes #148 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
- 15 Nov, 2019 2 commits
-
-
When transfering from host use normal path. On sona performance jumps from 46 mpixels/s to ~105 mpixels/s. Signed-off-by:
David Riley <davidriley@chromium.org> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
Fix cases where trying to transfer from host directly after submitting command buffer (eg when trying to run dEQP-GLES2.functional.read_pixels.* or crosvm gpu_renderer::simple_clear tests) would fail non-deterministically due to the mapping occuring prior to the rendering completing by forcing a fence. In particular Mali platforms are highly susceptible to synchronization issues and also require setting the context prior to fencing. Signed-off-by:
David Riley <davidriley@chromium.org> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
- 14 Nov, 2019 3 commits
-
-
Gbm-resources can be used for data blobs. These are created with a height of 1 and the required width, which can easily exceed the maximum supported texture width. Signed-off-by:
David Stevens <stevensd@chromium.org> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
Gert Wollny authored
Get rid of now useless type casts too. Fixes #121 v2: rebase to remove type casts that were newly introduced in master Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
Gert Wollny authored
Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org>
-
- 08 Nov, 2019 1 commit
-
-
David Stevens authored
This change makes sure that gbm functions are properly guarded by ENABLE_GBM_ALLOCATION, to prevent build failures when the gbm headers aren't included. Signed-off-by:
David Stevens <stevensd@chromium.org> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com>
-
- 22 Oct, 2019 2 commits
-
-
Mesa emulates planar format sampling with per-plane samplers. With this change, the guest can pass the plane index when creating a sampler view from a virgl resource to create a per-plane sampler view. The index can be passed in place of the texture layer, as that will always be 0 for planar images. Signed-off-by:
David Stevens <stevensd@chromium.org> Reviewed-by:
Lepton Wu <lepton@chromium.org>
-
Lepton Wu authored
Since they are not immutable texture storage, that doesn't work. Reviewed-by:
Gert Wollny <gert.wollny@collabora.com> Signed-off-by:
Lepton Wu <lepton@chromium.org>
-
- 10 Oct, 2019 10 commits
-
-
Lepton Wu authored
So it can show the right texture id. Reviewed-by:
Gert Wollny <gert.wollny@collabora.com> Signed-off-by:
Lepton Wu <lepton@chromium.org>
-
Gert Wollny authored
Closes #140 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
Closes #138 Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
With the format checks introduced earlier the double free bug reported in #139 should no longer be possible. Nevertheless, add an assert to ensure that this is checked. Closes #139 v2: Update NDEBUG_UNUSED to MAYBE_UNUSED Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
Closes #143 v2: Actually check for the texture target type (Emil) Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
If the bind flags are not correct then the default code path would try to create a texture with PIPE_BUFFER as target. Reorder the checks to bail out in this case after freeing the memory. Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
Closes #141 Closes #142 v2 : drop colon in error description (Emil) Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
- break line of resource creation function declaration Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
While we are at it: - free memory if texture allocation fails Closes #144 Closes #145 Closes #146 v2: Move the error string creation to extra patch (Emil) v3: Fix whitespace errors (Emil) and one logic error Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Gert Wollny authored
The function is used from vrend_renderer.c, so it also should be part of the libvrend.la conveniance library. This requires that the CONTEXT enums and the variable egl are also part of this library. Signed-off-by:
Gert Wollny <gert.wollny@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-