Преглед на файлове

anv: use devinfo for number of thread/eu

It turns out Gen9LP has fewer threads per EU (6 vs 7).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
tags/17.2-branchpoint
Lionel Landwerlin преди 8 години
родител
ревизия
d8bf2861ad
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3
    2
      src/intel/vulkan/anv_device.c

+ 3
- 2
src/intel/vulkan/anv_device.c Целия файл

@@ -359,8 +359,9 @@ anv_physical_device_init(struct anv_physical_device *device,

if (device->info.is_cherryview &&
device->subslice_total > 0 && device->eu_total > 0) {
/* Logical CS threads = EUs per subslice * 7 threads per EU */
uint32_t max_cs_threads = device->eu_total / device->subslice_total * 7;
/* Logical CS threads = EUs per subslice * num threads per EU */
uint32_t max_cs_threads =
device->eu_total / device->subslice_total * device->info.num_thread_per_eu;

/* Fuse configurations may give more threads than expected, never less. */
if (max_cs_threads > device->info.max_cs_threads)

Loading…
Отказ
Запис