[i915g] PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS is Unknown cap 38
System information
- OS: Gentoo
- GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2592] (rev 04)
- Kernel version: Linux portatil 5.10.27-gentoo #1 (closed) PREEMPT Sat Apr 10 20:22:57 WEST 2021 i686 Intel(R) Celeron(R) M processor 1.60GHz GenuineIntel GNU/Linux
- Mesa version: Mesa master from yesterday
- Xserver version: X.Org X Server 1.20.10
- Desktop manager and compositor: i3wm no compositor
Describe the issue
when doing this command in i915g...
`LD_PRELOAD=/usr/lib/gcc/i686-pc-linux-gnu/10.2.0/libasan.so LIBGL_DEBUG=verbose LIBGL_DRIVERS_PATH="/home/mercuriete/borrar/mesa/build/src/gallium/targets/dri" GALLIUM_HUD=lol glxinfo`
the output is the following:
i915_get_shader_param: Unknown cap 38.
which corresponds with: PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS
this was introduced in: 2a06423c
so cc: @airlied
the fix is putting here: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/drivers/i915/i915_screen.c#L184
PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS:
PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTER_BUFFERS:
return 0;
@airlied I can create a MR if you think this is the propper change. (there are no functional change because right now the flow is going through the default and returns 0 as well but prints a warning)
thanks.