1999 Commits
Author SHA1 Message Date
Akihiko Odaki 0ae981c805 Remove GNU extension codes
They were detected with clang-1200.0.32.29.

Signed-off-by: Akihiko Odaki <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-02-23 22:39:58 +09:00
Rohan Garg 7e7a4e72a1 vrend: Introudce VIRGL_CAP_V2_VIDEO_MEMORY to query video memory
This will allow for the virgl userspace driver to be able to respond
to PIPE_CAP_VIDEO_MEMORY requests.

Signed-off-by: Rohan Garg <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-02-16 13:45:18 +00:00
Chia-I Wu b620ab260d tests: add test_virgl_fence
Basic tests for fence create/poll/export.  Note that export tests
require VRENDTEST_USE_EGL_GLES to be set.

Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-02-11 08:59:05 -08:00
Chia-I Wu c995f69808 tests: respect VRENDTEST_USE_EGL_GLES
When VRENDTEST_USE_EGL_GLES is set, use GLES.

Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-02-11 08:59:02 -08:00
Lepton Wu 51f45f343b vrend: Fix GL_TEXTURE_SWIZZLE_RGBA on GLES
GL_TEXTURE_SWIZZLE_RGBA is not available on GLES

Fixes: 4ab4d4e ("vrend: pass texture swizzle as array")

Signed-off-by: Lepton Wu <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-02-05 11:21:57 -08:00
John Bates 8d824b10cc use TRACE_SCOPE_SLOW for high-frequency tracing
Signed-off-by: John Bates <[email protected]>
Reviewed-By: Gert Wollny <[email protected]>
2021-02-05 08:15:58 -08:00
John Bates e64afcf897 add percetto tracing option
Percetto is available at:
https://github.com/olvaffe/percetto

Signed-off-by: John Bates <[email protected]>
Reviewed-By: Gert Wollny <[email protected]>
2021-02-05 08:15:58 -08:00
John Bates 0621329415 remove TRACE_SCOPE_FMT to simplify tracing API
As we transition to perfetto, there are more efficient ways
of adding metadata to traces that we can use when it is
needed.

Signed-off-by: John Bates <[email protected]>
Reviewed-By: Gert Wollny <[email protected]>
2021-02-05 08:15:58 -08:00
Gert Wollny fab5e73314 meson: Fix test for "cleanup" attribute
When c_args included "-Werror=pedantic" the test would otherwise fail.

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
2021-02-05 09:36:40 +00:00
Gert Wollny ae72487585 vrend: report compute cap on GL only if the GL version is at least 3.3
We requre version 330 when we create a compute shader on OpenGL, so we
should also report the cap only when we have this version.

Closes #200

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
2021-02-05 09:48:34 +01:00
Gert Wollny 1e1dbbd0e7 ci: Set two expected failures for GLES 3.1 on GL
Related: #201

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny ced7231ce5 ci: Update docker image tag
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny 2ca194a71e ci: error exit out of the container build when a build step fails
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny f9e8acf247 ci: keep fewer packages to make sure the self-compiled versiosn are used
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny 600c65b97e ci: Reorder mesa and libdrm build and use older mesa sha
We want a mesa version that can be build in Debian/buster, for that
we need to use an older version, and we need to build the dependecies
in order.

While touching it also update the libdrm version.

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny a98dc8989c ci_ Update expected GL CTS test results
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny 69ae8bae47 ci: Update expected results for the piglits tests
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny 72139579bd ci: Add new expected results for GLES 3.1
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:29 +01:00
Gert Wollny f7ede814ea ci: Update expected results for GLES 3.0
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:28 +01:00
Gert Wollny 9f1d0efead ci: Update expected results for GLES 2.0
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:28 +01:00
Gert Wollny cbe5a89606 ci: Pass correct return value
popd overwrites $?, and since it always succeeds the CI was reporting
success even when piglit or deqp tests failed.

Fixes:8446009e7c889ad52d3d48b7fa82f8249edf3cf4
    ci: Use ci-templates to create the container image

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:28 +01:00
Gert Wollny 1dac420751 ci: revert to using git for libepoxy
The packaged version is not new enough.

v2: Don't downgrade the libdrm version (Tomeu)

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>.
2021-02-04 15:16:28 +01:00
Lepton Wu 4835ffa488 vrend: Fixes non-reachable default case.
This fixes a regression introduced by !462 which breaks some GLES3 and
GLES31 dEQP tests.

Fixes: 1b51495 ("vrend: replace if-chain by using switch/case")

Signed-off-by: Lepton Wu <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-02-01 09:58:00 -08:00
Gert Wollny 9fbc538ac6 vrend: move program only into front of queue of it is not already there
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:54 +01:00
Gert Wollny 4a5c238d53 vrend: don't check vertex attributes in draw_vbo
This reverts 374dd5bae8
    Fix i965 crash with bin/gl-3.1-vao-broken-attrib

The crash with i965 can't be reproduced anymore, and the Gallium
drivers do the correct checks to not crash there, so it is
not necessary to do the extra checking.

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:49 +01:00
Gert Wollny c08c84197a vrend: use helper pointers in draw_bind_samplers_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:47 +01:00
Gert Wollny 4fd840331a vrend: use sub_ctx directly in clear
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:45 +01:00
Gert Wollny 9e0c4aabd4 vrend: use helper for sub_ctx in set_framebuffer_state
Also change the interface of called functions to take sub_ctx

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:42 +01:00
Gert Wollny 999f9feea4 vrend: pass sub_ctx directly to draw_bind_objects
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:41 +01:00
Gert Wollny e409ad823a vrend: add sub_ctx helper in bind_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:39 +01:00
Gert Wollny ff37f78f84 vrend: add sub_ctx helper in create_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:37 +01:00
Gert Wollny 7ab6a964f0 vrend: add a sub_ctx helper in launch_grid
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:35 +01:00
Gert Wollny 5c85adaa7d vrend: pass sub_context directly to draw_bind_abo_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:34 +01:00
Gert Wollny b32ff0f72e vrend: pass sub_context directly to draw_bind_ssbo_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:32 +01:00
Gert Wollny bd7972b403 vrend: pass sub_context directly to draw_bind_images_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:30 +01:00
Gert Wollny 8ac253a42e vrend: make evaluation of same_prog better optimizable
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:28 +01:00
Gert Wollny 4b151fcc8a vrend: rework shader program creation to be able to pass sub_ctx
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:26 +01:00
Gert Wollny d0a23c1a7f vrend: pass sub_ctx directly to draw_bind_samplers_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:25 +01:00
Gert Wollny 217538ff8c vrend: pass sub_ctx directly to draw_bind_const_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:22 +01:00
Gert Wollny 6bbf703a98 vrend: pass sub_ctx direcly to draw_bind_ubo_shader
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:15:20 +01:00
Gert Wollny 2ca4dd4fe4 vrend: pass sub_ctx dirctly to use and add program
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:56 +01:00
Gert Wollny 71378f0d02 vrend: pass sub_ctx to blend state
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:54 +01:00
Gert Wollny d3d10369dc vrend: pass sub_ctx to update_viewport_state
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:49 +01:00
Gert Wollny 18fb818a92 vrend: pass sub_ctx when setting scissor state
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:47 +01:00
Gert Wollny 3712429d84 vrend: pass sub_ctx when setting DS state
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:45 +01:00
Gert Wollny 963a02a785 vrend: pass sub_ctx directly to update_frontface_state
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:43 +01:00
Gert Wollny 71eadba603 vrend: replace uses of ctx->sub with sub_ctx
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:40 +01:00
Gert Wollny 57a19772cb vrend: Add parent context reference to sub-contexts
When we want to pass sub contexts directly to the function to avoid
having to de-reference the context pointer all the time there are rare
cases when we need the pointer to the parent context (e.g. for error
reporting). For these cases we need to be able to get the parent context.
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Chia-I Wu <[email protected]>
2021-02-01 12:14:33 +01:00
Antonio Caggiano 05676a0376 perf: Update gfx-pps version
Signed-off-by: Antonio Caggiano <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-01-28 08:54:01 +00:00
Antonio Caggiano c165357711 perf: Fix trace path handling in scripts
Fix `run.sh` and `run_traces.sh` trace path handling by taking into
account that the `--trace` option may contain a multi-directory path
relative to traces-db.

Together with this fix, you should expect to find the output directory
of a perf testing session under the same directory of the trace file.

Signed-off-by: Antonio Caggiano <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
2021-01-27 14:59:11 +01:00