intel/compiler: Add ctor to fs_builder that just takes the shader
Uses the dispatch_width from the shader (fs_visitor). This was not possible before because the dispatch_width was not part of backend_shader. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26323>
This commit is contained in:
@@ -104,7 +104,7 @@ gs_thread_payload::gs_thread_payload(fs_visitor &v)
|
||||
{
|
||||
struct brw_vue_prog_data *vue_prog_data = brw_vue_prog_data(v.prog_data);
|
||||
struct brw_gs_prog_data *gs_prog_data = brw_gs_prog_data(v.prog_data);
|
||||
const fs_builder bld = fs_builder(&v, v.dispatch_width).at_end();
|
||||
const fs_builder bld = fs_builder(&v).at_end();
|
||||
|
||||
/* R0: thread header. */
|
||||
unsigned r = reg_unit(v.devinfo);
|
||||
@@ -439,7 +439,7 @@ task_mesh_thread_payload::task_mesh_thread_payload(fs_visitor &v)
|
||||
* the address to descriptors.
|
||||
*/
|
||||
|
||||
const fs_builder bld = fs_builder(&v, v.dispatch_width).at_end();
|
||||
const fs_builder bld = fs_builder(&v).at_end();
|
||||
|
||||
unsigned r = 0;
|
||||
assert(subgroup_id_.file != BAD_FILE);
|
||||
|
||||
Reference in New Issue
Block a user