From ec6e247a40ec4e473acd45013d4c2ba935c16982 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 4 Oct 2021 13:58:07 +0300 Subject: [PATCH] intel/fs: handle inline data on OpenCL style kernels This is for Gfx12.5 with the COMPUTE_WALKER::Inline Data payload. We do this in a similar way to the compute kernels. Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Part-of: --- src/intel/compiler/brw_fs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index f9744fe..f71ab86 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -1590,9 +1590,9 @@ fs_visitor::assign_curb_setup() prog_data->curb_read_length = uniform_push_length + ubo_push_length; uint64_t used = 0; + bool is_compute = gl_shader_stage_is_compute(stage); - if (stage == MESA_SHADER_COMPUTE && - brw_cs_prog_data(prog_data)->uses_inline_data) { + if (is_compute && brw_cs_prog_data(prog_data)->uses_inline_data) { /* With COMPUTE_WALKER, we can push up to one register worth of data via * the inline data parameter in the COMPUTE_WALKER command itself. * @@ -1600,7 +1600,7 @@ fs_visitor::assign_curb_setup() */ assert(devinfo->verx10 >= 125); assert(uniform_push_length <= 1); - } else if (stage == MESA_SHADER_COMPUTE && devinfo->verx10 >= 125) { + } else if (is_compute && devinfo->verx10 >= 125) { fs_builder ubld = bld.exec_all().group(8, 0).at( cfg->first_block(), cfg->first_block()->start()); -- 2.7.4