Author: Brian Paul <firstname.lastname@example.org>
util: don't use fbo if test_config->requires_displayed_window is true
If the test is configured with config.requires_displayed_window = true
we shouldn't create an fbo if the -fbo option is given.
Fixes "drawbuffer-modes -auto -fbo" failure, for example.
Reviewed-by: Eric Anholt <email@example.com>
/tmp/build_root/m64/lib/piglit/bin/masked-clear -auto -fbo
<crashes with no assertion or output>
This is running with -p gbm
You see the test running the test manually? Can you debug this a bit further?
I have no experience with -p gbm.
This only crashes with gbm:
> PIGLIT_PLATFORM=gbm gdb /tmp/build_root/m64/lib/piglit/bin/masked-clear
(gdb) set args -auto -fbo
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1959de0 in do_single_blorp_clear () from /tmp/build_root/m64/lib/dri/i965_dri.so
#0 0x00007ffff1959de0 in do_single_blorp_clear () from /tmp/build_root/m64/lib/dri/i965_dri.so
#1 0x00007ffff195c060 in brw_blorp_clear_color () from /tmp/build_root/m64/lib/dri/i965_dri.so
#2 0x00007ffff195ed8c in brw_clear () from /tmp/build_root/m64/lib/dri/i965_dri.so
#3 0x00007ffff7a94d32 in stub_glClear (mask=16384) at tests/util/piglit-dispatch-gen.c:3907
#4 0x0000555555555483 in test_color_masking (buffer=1028) at ../tests/general/masked-clear.c:109
#5 0x00005555555557ec in piglit_display () at ../tests/general/masked-clear.c:222
#6 0x00007ffff7b35e4c in enter_event_loop (winsys_fw=0x555555769c20) at ../tests/util/piglit-framework-gl/piglit_gbm_framework.c:42
#7 0x00007ffff7b35681 in run_test (gl_fw=0x555555769c20, argc=1, argv=0x7fffffffe778)
#8 0x00007ffff7b19e1d in piglit_gl_test_run (argc=1, argv=0x7fffffffe778, config=0x7fffffffe630)
#9 0x00005555555551a5 in main (argc=1, argv=0x7fffffffe778) at ../tests/general/masked-clear.c:44
Perhaps this is a newly exposed bug in the i965 driver. I suggest a debug build and gdb.
Assigning to Mesa. The bisection was to a piglit commit that looks to have exposed a mesa bug.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1641.