mesa/src
Caio Oliveira db8022dc4d intel/brw: Use helper to create accumulator register
This ensure the region triple <V,W,H> is set correctly, in this case the
desired region is a sequential like <8,8,1>.  Without the helper the
sequence we get is <0,1,0> -- which the generator currently partially
adjusts when emitting code, but is not sufficient when doing validation
earlier.

The code generated code is slightly modified.  From crucible test
func.shader.subtractSaturate.uint in the fragment shader for SIMD8, the
diff looks like

```
 mov(8)          acc0<1>UD       g21<8,8,1>UD                    { align1 1Q $0.dst };
-add.sat(8)      g22<1>UD        -acc0<0,1,0>UD  g16<8,8,1>UD    { align1 1Q @1 $0.dst };
+add.sat(8)      g22<1>UD        -acc0<8,8,1>UD  g16<8,8,1>UD    { align1 1Q @1 $0.dst };
```

Note that without the patch generator adjusted the hstride for acc0 used
as destination (see brw_set_dest), but kept the src region as is.  For
the source, it is not clear to me why the <0,1,0> would work correctly
here since it is a scalar, but using <8,8,1> it is correct.

Fixes: 58907568ec ("intel/fs: Add SHADER_OPCODE_[IU]SUB_SAT pseudo-ops")
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28059>
2024-03-13 03:23:30 +00:00
..
amd radv/av1: limit profile and bit depth to supported values 2024-03-13 02:20:59 +00:00
android_stub
asahi asahi: derive ht 2024-03-12 19:41:49 +00:00
broadcom v3d: fix line coords with perspective projection 2024-03-11 12:42:50 +00:00
c11
compiler glsl_types: derive ht 2024-03-12 19:41:50 +00:00
drm-shim drm-shim: Avoid invalid file and time bits combination 2024-03-07 09:55:06 +00:00
egl egl/wayland: Remove EGL_WL_create_wayland_buffer_from_image 2024-02-29 18:26:53 +00:00
etnaviv etnaviv: isa: Support multiple encodings for texldb 2024-03-12 17:02:44 +00:00
freedreno ci/freedreno: update expectations comment 2024-03-08 22:12:18 +00:00
gallium zink: add a pass to strip out multisample storage image ops 2024-03-13 03:03:24 +00:00
gbm gbm: Remove hardcoded color-channel data 2024-02-27 10:51:03 +00:00
getopt
glx glx: Remove DEBUG code in xfont.c 2024-03-11 00:09:58 +00:00
gtest gtest: backport ansi color fix 2023-08-18 21:33:14 +00:00
imagination pvr: return the OS page size for minMemoryMapAlignment 2024-03-11 11:32:53 +00:00
imgui
intel intel/brw: Use helper to create accumulator register 2024-03-13 03:23:30 +00:00
loader loader/wayland: Add named queue fallback 2024-02-28 11:01:31 +00:00
mapi glthread: invert _mesa_glthread_has_no_{un}pack_buffer by removing the negation 2024-03-11 22:44:42 +00:00
mesa mesa: force rendertarget usage on required-renderable formats 2024-03-12 14:22:17 +00:00
microsoft dzn: Support bufferDeviceAddress 2024-03-07 22:35:09 +00:00
nouveau nvk: Always copy conditional rendering value before compare 2024-03-12 20:22:27 +00:00
panfrost panfrost: make sure blends always have 4 components 2024-03-12 23:38:04 +00:00
tool perfetto/pps-producer: add optimized cpu/gpu timestamp correlation support 2023-11-09 13:22:48 +00:00
util util/hash_table: add DERIVE macro 2024-03-12 19:41:49 +00:00
virtio venus: fix VkDeviceGroupSubmitInfo cmd counts from feedback 2024-03-11 18:31:06 +00:00
vulkan vk/update-aliases: drop VK_ERROR_ prefix substitution 2024-03-11 14:48:14 +00:00
.clang-format ir3: allow liveness calculation for different register types 2024-03-01 13:45:10 +00:00
meson.build loader/wayland: Add fallback wl_display_dispatch_queue_timeout 2024-02-27 13:10:13 +00:00