Lines Matching refs:device

42 genX(emit_slice_hashing_state)(struct anv_device *device,
47 for (unsigned i = 2; i < ARRAY_SIZE(device->info.ppipe_subslices); i++)
48 assert(device->info.ppipe_subslices[i] == 0);
50 if (device->info.ppipe_subslices[0] == device->info.ppipe_subslices[1])
53 if (!device->slice_hash.alloc_size) {
55 device->slice_hash =
56 anv_state_pool_alloc(&device->dynamic_state_pool, size, 64);
58 const bool flip = device->info.ppipe_subslices[0] <
59 device->info.ppipe_subslices[1];
63 GENX(SLICE_HASH_TABLE_pack)(NULL, device->slice_hash.map, &table);
68 ptr.SliceHashTableStatePointer = device->slice_hash.offset;
82 ppipes_of[n] += (device->info.ppipe_subslices[p] == n);
86 for (unsigned p = 3; p < ARRAY_SIZE(device->info.ppipe_subslices); p++)
87 assert(device->info.ppipe_subslices[p] == 0);
120 for (unsigned p = 0; p < ARRAY_SIZE(device->info.ppipe_subslices); p++) {
121 if (device->info.ppipe_subslices[p])
126 if (!device->slice_hash.alloc_size) {
128 device->slice_hash =
129 anv_state_pool_alloc(&device->dynamic_state_pool, size, 64);
144 GENX(SLICE_HASH_TABLE_pack)(NULL, device->slice_hash.map, &table);
149 ptr.SliceHashTableStatePointer = device->slice_hash.offset;
165 UNUSED struct anv_device *device = queue->device;
171 const struct intel_l3_config *cfg = intel_get_default_l3_config(&device->info);
172 genX(emit_l3_config)(batch, device, cfg);
173 device->l3_config = cfg;
182 uint32_t mocs = device->isl_dev.mocs.internal;
234 struct anv_device *device = queue->device;
314 genX(emit_slice_hashing_state)(device, &batch);
320 if (device->info.disable_ccs_repack) {
382 if (device->info.has_aux_map) {
383 uint64_t aux_base_addr = intel_aux_map_get_base(device->aux_map_ctx);
401 if (GFX_VER >= 8 && device->physical->has_context_isolation) {
454 genX(init_physical_device_state)(ASSERTED struct anv_physical_device *device)
456 assert(device->info.verx10 == GFX_VERx10);
460 genX(init_device_state)(struct anv_device *device)
464 device->slice_hash = (struct anv_state) { 0 };
465 for (uint32_t i = 0; i < device->queue_count; i++) {
466 struct anv_queue *queue = &device->queues[i];
475 res = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
499 genX(init_cps_device_state)(struct anv_device *device)
502 void *cps_state_ptr = device->cps_states.map;
557 get_cps_state_offset(struct anv_device *device, bool cps_enabled,
561 return device->cps_states.offset;
586 return device->cps_states.offset + offset;
592 const struct anv_device *device,
595 UNUSED const struct intel_device_info *devinfo = &device->info;
695 if (device->physical->cmd_parser_version >= 4) {
774 * correct centroid computation in the device."
869 struct anv_device *device = pipeline->base.device;
872 get_cps_state_offset(device, cps_enable, fsr);
946 ANV_FROM_HANDLE(anv_device, device, _device);
951 sampler = vk_object_zalloc(&device->vk, pAllocator, sizeof(*sampler),
954 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
962 border_color_offset = device->border_colors.offset +
968 anv_state_reserved_pool_alloc(&device->custom_border_colors);
1049 if (device->physical->has_bindless_samplers) {
1056 anv_state_pool_alloc(&device->dynamic_state_pool,