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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13171>
This commit is contained in:
Lionel Landwerlin 2021-10-04 13:58:07 +03:00 committed by Marge Bot
parent 4d8e788663
commit ec6e247a40

View file

@ -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());