mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
agx: defer printf address lowering
this will be needed with vtn_bindgen2 Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33067>
This commit is contained in:
parent
07ad850787
commit
c4bd2e691b
2 changed files with 4 additions and 2 deletions
|
|
@ -98,8 +98,6 @@ compile(void *memctx, const uint32_t *spirv, size_t spirv_size)
|
|||
|
||||
NIR_PASS(_, nir, nir_lower_printf,
|
||||
&(const struct nir_lower_printf_options){
|
||||
.buffer_address = LIBAGX_PRINTF_BUFFER_ADDRESS,
|
||||
.max_buffer_size = LIBAGX_PRINTF_BUFFER_SIZE - 8,
|
||||
});
|
||||
|
||||
/* We have to lower away local constant initializers right before we
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "agx_compile.h"
|
||||
#include "asahi/clc/asahi_clc.h"
|
||||
#include "asahi/layout/layout.h"
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
#include "util/bitset.h"
|
||||
|
|
@ -3775,6 +3776,9 @@ agx_compile_shader_nir(nir_shader *nir, struct agx_shader_key *key,
|
|||
if (nir->info.stage == MESA_SHADER_FRAGMENT)
|
||||
info->tag_write_disable = !nir->info.writes_memory;
|
||||
|
||||
NIR_PASS(_, nir, nir_lower_printf_buffer, LIBAGX_PRINTF_BUFFER_ADDRESS,
|
||||
LIBAGX_PRINTF_BUFFER_SIZE - 8);
|
||||
|
||||
bool needs_libagx = true /* TODO: Optimize */;
|
||||
|
||||
NIR_PASS(_, nir, nir_lower_frag_coord_to_pixel_coord);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue