mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 19:28:11 +02:00
i965/fs: Simplify get_fpu_lowered_simd_width() by using inequalities instead of rounding.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
ee930c0435
commit
3b7b908787
1 changed files with 2 additions and 2 deletions
|
|
@ -4599,8 +4599,8 @@ get_fpu_lowered_simd_width(const struct gen_device_info *devinfo,
|
|||
*/
|
||||
if (devinfo->gen < 8) {
|
||||
for (unsigned i = 0; i < inst->sources; i++) {
|
||||
if (DIV_ROUND_UP(inst->size_written, REG_SIZE) == 2 &&
|
||||
inst->size_read(i) != 0 && DIV_ROUND_UP(inst->size_read(i), REG_SIZE) != 2 &&
|
||||
if (inst->size_written > REG_SIZE &&
|
||||
inst->size_read(i) != 0 && inst->size_read(i) <= REG_SIZE &&
|
||||
!is_uniform(inst->src[i]) &&
|
||||
!(type_sz(inst->dst.type) == 4 && inst->dst.stride == 1 &&
|
||||
type_sz(inst->src[i].type) == 2 && inst->src[i].stride == 1)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue