mesa/src
Kenneth Graunke 117a0368b0 iris: Fix broken aux.possible/sampler_usages bitmask handling
For renderable surfaces, we allocate SURFACE_STATEs for each bit in
res->aux.possible_usages.  Sampler views use res->aux.sampler_usages.

When pinning buffers, we call surf_state_offset_for_aux() to calculate
the offset to the desired surface state.  surf_state_offset_for_aux()
took an aux_modes parameter, which should be one of those two fields.
However...it was not using that parameter.  It always used the broader
res->aux.possible_usages field directly.

One of the callers, update_clear_value(), was passing incorrect masks
for this parameter.  It iterated through the bits in order, using
u_bit_scan(), which destructively modifies the mask.  So each time we
called it, the count of bits before our selected mode was 0, which would
cause us to always update the SURFACE_STATE for ISL_AUX_USAGE_NONE,
rather than updating each in turn.  This was hidden by the earlier bug
where surf_state_offset_for_aux() ignored the parameter.

Fixes: 7339660e80 ("iris: Add aux.sampler_usages.")
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
2019-08-22 18:31:14 -07:00
..
amd radv: Disable NGG for geometry shaders. 2019-08-22 12:47:32 +02:00
broadcom v3d: Use the correct opcodes for signed image min/max 2019-08-21 17:19:55 +00:00
compiler nir: Remove nir_const_load_to_arr 2019-08-22 12:24:13 -07:00
drm-shim meson: replace libmesa_util with idep_mesautil 2019-08-03 00:08:37 +00:00
egl gbm: Add buffer handling and visuals for fp16 formats 2019-08-21 18:36:57 +00:00
etnaviv etnaviv: Add valgrind support 2019-08-14 10:36:20 +02:00
freedreno nir: Add explicit signs to image min/max intrinsics 2019-08-21 17:19:55 +00:00
gallium iris: Fix broken aux.possible/sampler_usages bitmask handling 2019-08-22 18:31:14 -07:00
gbm gbm: Add buffer handling and visuals for fp16 formats 2019-08-21 18:36:57 +00:00
getopt
glx glx: Make __glXGetDrawableAttribute return true sometimes 2019-08-22 13:29:06 -04:00
gtest delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
hgl haiku: Fix hgl dispatch build. Tested under meson/scons. 2019-04-02 16:06:00 -05:00
imgui imgui: bump imgui memory editor copy 2019-06-18 15:34:13 +00:00
intel intel/nir: Add a helper for getting BRW_AOP from an intrinsic 2019-08-21 17:19:55 +00:00
loader dri: Add fp16 formats 2019-08-21 18:36:57 +00:00
mapi mesa: add ext_dsa GetMultiTexLevelParameterEXT 2019-08-19 18:50:08 -04:00
mesa glx: Sync <GL/glxext.h> with Khronos 2019-08-22 13:29:04 -04:00
panfrost pan/midgard: Fix writeout combining 2019-08-22 14:03:23 -07:00
util util/timespec: use unsigned 64 bit integers for nsec values 2019-08-22 09:35:57 +02:00
vulkan vulkan: Update the XML and headers to 1.1.119 2019-08-12 14:56:33 +00:00
meson.build v3d: Introduce a DRM shim for calling out to the simulator. 2019-07-25 08:56:19 -07:00
SConscript