Dying Light triggers an assertion when switching from fullscreen to windowed mode:
DyingLightGame: state_tracker/st_atom_framebuffer.c:201: st_update_framebuffer_state: Assertion `!framebuffer.cbufs[i] || framebuffer.cbufs[i]->texture->bind & PIPE_BIND_RENDER_TARGET' failed.
(gdb) p i
$1 = 0
(gdb) p framebuffer.nr_cbufs
$2 = 1 '\001'
(gdb) p framebuffer.cbufs[i]
$3 = (struct pipe_surface *) 0x1a132450
(gdb) p framebuffer.cbufs[i]->texture->bind
$4 = 9
The assert wants PIPE_BIND_RENDER_TARGET but PIPE_BIND_DEPTH_STENCIL|PIPE_BIND_SAMPLER_VIEW is set.
They're managing to attach a depth texture to a GL_COLOR_ATTACHMENT0? That shouldn't be possible... but I don't see any logic blocking it in framebuffer_texture_with_dims.
OK, looks like the literal attach is legal, but then the framebuffer isn't complete. From OpenGL 4.6:
The framebuffer attachment point attachment is said to be framebuffer attachment
complete if the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE for
attachment is NONE (i.e., no image is attached), or if all of the following conditions are true:
If attachment is COLOR_ATTACHMENTi, then image must have a color-renderable
This should be handled in fbobject.c:test_attachment_completeness . Needs more investigation as to what's going wrong.
Tried to run DyingLight on Ubuntu 16.04 but got an error that detected opengl version is 3.0 but needed is 3.3. But in glxinfo I can see 4.5 version of opengl. After this game is loaded and some audio is played but nothing on the screen.
My setup info:
My setup info:
OS: Ubuntu 16.04 LTS 64 bit
Firefox: 58.0.2 (64-bit)
Mesa: 18.1.0-devel (git-33633690aa)
CPU: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
GPU: Intel® UHD Graphics 620 (Kabylake GT2)
hi. Is this issue still actual?
I tried to run game on debug mesa, and didn't see any assertion errors.
There were 2 things I did for this:
1. added "override" for GL version
2. launched on earlier mesa versions, because latest one has stable crash (https://bugs.freedesktop.org/show_bug.cgi?id=106997)
Yes the issue is still there on latest mesa git, at least with radeonsi.
Note that you need to change some video setting for the assert to trigger (from in main menu). For me it's enough to toggle vsync, for example.
If you're running radeonsi, can you try the patches from https://gitlab.freedesktop.org/tarceri/mesa/commits/ARB_gpu_shader_fp64 or https://github.com/FireBurn/PortageStuff/tree/master/patches/media-libs/mesa-9999
I used to see the issue where Dying Light used to crash on changes made to the graphical settings, however since bumping the compat version properly rather than forcing it, it seems to have fixed the issue
It seems the patches have landed, and while GL version overrides are no longer needed, the assert still triggers for me. Perhaps you've built a non-debug version when you tested?
Correct, I've only ever used debug builds when debugging issues
-- 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/1021.