Bug 94139

Summary: [regression, HSW, IVB] piglit.spec.arb_compute_shader.minmax
Product: Mesa Reporter: Mark Janes <mark.a.janes>
Component: Drivers/DRI/i965Assignee: Samuel Pitoiset <samuel.pitoiset>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium CC: imirkin, jljusten, maraeo
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:

Description Mark Janes 2016-02-13 21:32:32 UTC
Haswell and Ivybridge systems running stock linux 4.4 began failing this test, bisected to:

Author:     Samuel Pitoiset <samuel.pitoiset@gmail.com>
mesa: do not use a constant for MAX_COMPUTE_SHARED_SIZE

This will allow to query the underlying drivers for the maximum
total storage size of all variables declared as <shared> with

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>

standard out from the test:
/tmp/build_root/m64/lib/piglit/bin/arb_compute_shader-minmax -auto -fbo
piglit: debug: Requested an OpenGL 3.1 Forward-Compatible Core Context, and received a matching 3.3 context

token                                               minimum    value
GL_MAX_COMPUTE_WORK_GROUP_COUNT[0]                    65535    65535
GL_MAX_COMPUTE_WORK_GROUP_COUNT[1]                    65535    65535
GL_MAX_COMPUTE_WORK_GROUP_COUNT[2]                    65535    65535
GL_MAX_COMPUTE_WORK_GROUP_SIZE[0]                      1024     1120
GL_MAX_COMPUTE_WORK_GROUP_SIZE[1]                      1024     1120
GL_MAX_COMPUTE_WORK_GROUP_SIZE[2]                        64     1120
GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS                  1024     1120
GL_MAX_COMPUTE_UNIFORM_BLOCKS                            12       14
GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS                       16       32
GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS                     8       16
GL_MAX_COMPUTE_ATOMIC_COUNTERS                            8     4096
GL_MAX_COMPUTE_UNIFORM_COMPONENTS                       512    16384
GL_MAX_COMPUTE_IMAGE_UNIFORMS                             8       32

Standard Error

GL_MAX_COMPUTE_SHARED_MEMORY_SIZE                     32768        0 (ERROR)
Comment 1 Ilia Mirkin 2016-02-13 21:36:49 UTC
Ah right, that commit should have set it to the previously-default value (32768) for i965/gen7+. [And perhaps you might want to advertise a larger size, 32K seems potentially low.]
Comment 2 Samuel Pitoiset 2016-02-13 21:51:59 UTC

Thanks for reporting this.

The bugfix is on mesa-dev.

Comment 3 Samuel Pitoiset 2016-02-13 22:18:44 UTC
This should fix the issue:

commit 40fcb6b9f95050370af0fef11abd12e16b8cc7d0
Author: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Date:   Sat Feb 13 22:49:37 2016 +0100

    i965: fix MAX_COMPUTE_SHARED_SIZE constant value
    MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
    introduced in be27f77 (mesa: do not use a constant for
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94139
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
    Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.