[bdw][iris][bisected][regression] failing test on multiple test suites
Issues began with mesa=d7d0b444 :
Author: Rhys Perry <pendingchaos02@gmail.com>
Date: Tue Aug 25 17:36:14 2020 +0100
nir/opt_access: infer writeonly
This isn't always done for GL because it could cause ImageAccess to be
incorrect: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3278
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6483>
...
Tests are failing in piglit, deqp (gles31), and glcts (KHR-GL46)
piglit failures seem to show an incorrect color rendered:
/tmp/build_root/m64/lib/piglit/bin/arb_shader_image_load_store-host-mem-barrier --quick -auto -fbo
piglit: debug: Requested an OpenGL 3.2 Core Context, and received a matching 4.6 context
Probe value at (0, 0, 0, 0)
Expected: 0.000000 1.000000 0.000000 1.000000
Observed: 66.000000 66.000000 66.000000 66.000000
Probe value at (0, 0, 0, 0)
Expected: 0.000000 1.000000 0.000000 1.000000
Observed: 66.000000 66.000000 66.000000 66.000000
Probe value at (0, 0, 0, 0)
Expected: 0.000000 1.000000 0.000000 1.000000
Observed: 66.000000 66.000000 66.000000 66.000000
Probe value at (0, 0, 0, 0)
Expected: 0.000000 1.000000 0.000000 1.000000
...
deqp failures show stdout that is something to this affect:
// Created a texture (name 129)
// Created a texture (name 130) for storing the shader output
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, 129);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA32F, 7, 1);
glBindImageTexture(0, 129, 0, GL_TRUE, 0, GL_READ_WRITE, GL_RGBA32F);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, 130);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32UI, 1, 1);
glBindImageTexture(1, 130, 0, GL_TRUE, 0, GL_WRITE_ONLY, GL_R32UI);
glUseProgram(1105);
glDispatchCompute(1, 1, 1);
glBindFramebuffer(GL_FRAMEBUFFER, 57);
glMemoryBarrier(GL_FRAMEBUFFER_BARRIER_BIT);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, 130);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, 130, 0);
glCheckFramebufferStatus(GL_FRAMEBUFFER);
// GL_FRAMEBUFFER_COMPLETE returned
glReadPixels(0, 0, 1, 1, GL_RGBA_INTEGER, GL_UNSIGNED_INT, 0x5589e57114d0);
// Note: expecting to get value 1007
// Failure: got value 8192
glcts shows similar results:
...
// arrays = { 846 }
glBindVertexArray(846);
glBindBuffer(GL_ARRAY_BUFFER, 2291);
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 44, 0);
glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 44, 0x8);
glVertexAttribPointer(2, 3, GL_FLOAT, GL_FALSE, 44, 0x14);
glVertexAttribPointer(3, 3, GL_FLOAT, GL_FALSE, 44, 0x20);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glEnableVertexAttribArray(0);
glEnableVertexAttribArray(1);
glEnableVertexAttribArray(2);
glEnableVertexAttribArray(3);
glBindVertexArray(0);
glClear(GL_COLOR_BUFFER_BIT);
glBindVertexArray(846);
glDrawArraysInstancedBaseInstance(0x00000005, 0, 4, 1, 0);
glReadPixels(0, 0, 400, 300, GL_RGBA, GL_FLOAT, 0x5628282ee010);
First bad color: [1,0,0,0.2]
Test Run() failed
...
Results were sampled from https://mesa-ci.01.org/mesa_master/builds/23617/group/63a9f0ea7bb98050796b649e85481845