panfrost: Ensure printf buffer size is lowered
We were not using the nir_lower_printf_buffer pass, this fix issues with printf usages with OpenCL C internal shaders. Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34814>
This commit is contained in:
committed by
Marge Bot
parent
25752d9ac1
commit
aecc3fbe50
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "pan_shader.h"
|
||||
#include "panfrost/clc/panfrost_compile.h"
|
||||
#include "pan_format.h"
|
||||
|
||||
#if PAN_ARCH <= 5
|
||||
@@ -112,6 +113,8 @@ GENX(pan_shader_compile)(nir_shader *s, struct panfrost_compile_inputs *inputs,
|
||||
{
|
||||
memset(info, 0, sizeof(*info));
|
||||
|
||||
NIR_PASS(_, s, nir_lower_printf_buffer, 0, LIBPAN_PRINTF_BUFFER_SIZE - 8);
|
||||
|
||||
#if PAN_ARCH >= 6
|
||||
bifrost_compile_shader_nir(s, inputs, binary, info);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user