mesa/src/freedreno
Chia-I Wu 6929ccedff turnip: shared_consts and push_consts are mutually exclusive
Skip gather_push_constants when shared consts are enabled.  This makes
sure push_consts is only zero-initialized, and reserved_user_consts is
0.  This saves some space in the const file.

This change also adds a few asserts and a comment to
lower_load_push_constant.  Because shared consts share the same range
for all stages, we should not apply per-stage offsets in
lower_load_push_constant.  It worked because nir_lower_explicit_io
always sets base to 0 for nir_var_mem_push_const and
shader->push_consts.lo was always 0 for all stages.

Fixes: 0c787d57e6 ("tu: increase maxPushConstantsSize to 256.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17777>
2022-07-29 16:22:43 +00:00
..
.gitlab-ci a4xx: add emission of compute state, and compute dispatch 2022-03-05 03:21:05 -05:00
afuc freedreno: remove stale makefile 2022-06-02 09:13:23 +00:00
ci tu: Add debug option to use emulated renderpass support 2022-07-27 19:40:44 +00:00
common freedreno: Enable A619 2022-07-21 00:16:32 +00:00
computerator Change all debug_assert calls to assert 2022-07-10 00:50:35 +00:00
decode freedreno: Replace A6XX_IBO with A6XX_TEX_CONST 2022-02-28 23:33:22 +00:00
drm util/list: rename LIST_ENTRY() to list_entry() 2022-07-28 10:10:44 +00:00
drm-shim freedreno/drm-shim: add a660 2022-07-22 02:11:14 +00:00
ds freedreno/perfetto+fdperf: Set SYSPROF param 2022-03-04 16:06:34 -08:00
fdl tu: Support resolving D24S8 -> S8 2022-07-26 15:00:01 +00:00
ir2 freedreno/ir2: Re-indent 2021-04-17 15:38:56 +00:00
ir3 util/list: rename LIST_ENTRY() to list_entry() 2022-07-28 10:10:44 +00:00
isa ir3: Implement and document ldc.k 2022-03-17 12:15:45 +00:00
perfcntrs freedreno/fdperf: support dumping counters 2022-05-14 22:18:52 +00:00
registers freedreno/a6xx: VPC_SO_NCOMP is actually VPC_SO_BUFFER_STRIDE 2022-07-12 17:57:07 +00:00
rnn freedreno: Move the headergen2 test to be meson unit tests. 2021-10-01 23:16:04 +00:00
vulkan turnip: shared_consts and push_consts are mutually exclusive 2022-07-29 16:22:43 +00:00
.clang-format freedreno: Add some options to .clang-format 2021-07-12 20:57:21 +00:00
.dir-locals.el freedreno: Update editorconfig and emacs settings for freedreno reformat. 2021-05-10 23:16:00 +00:00
.editorconfig freedreno: Update editorconfig and emacs settings for freedreno reformat. 2021-05-10 23:16:00 +00:00
meson.build freedreno: support lua54 2021-10-26 00:33:31 +00:00