mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
4d8e788663
commit
ec6e247a40
1 changed files with 3 additions and 3 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue