intel/fs: Remove min_dispatch_width from fs_visitor
It's 8 for everything except compute shaders. For compute shaders, there's no need to duplicate the computation and it's just a possible source of error. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
@@ -871,17 +871,6 @@ fs_visitor::init()
|
||||
unreachable("unhandled shader stage");
|
||||
}
|
||||
|
||||
if (stage == MESA_SHADER_COMPUTE) {
|
||||
const struct brw_cs_prog_data *cs_prog_data = brw_cs_prog_data(prog_data);
|
||||
unsigned size = cs_prog_data->local_size[0] *
|
||||
cs_prog_data->local_size[1] *
|
||||
cs_prog_data->local_size[2];
|
||||
size = DIV_ROUND_UP(size, devinfo->max_cs_threads);
|
||||
min_dispatch_width = size > 16 ? 32 : (size > 8 ? 16 : 8);
|
||||
} else {
|
||||
min_dispatch_width = 8;
|
||||
}
|
||||
|
||||
this->max_dispatch_width = 32;
|
||||
this->prog_data = this->stage_prog_data;
|
||||
|
||||
|
Reference in New Issue
Block a user