"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/amd/vulkan/radv_device.c" between
mesa-21.2.0-rc1.tar.xz and mesa-21.2.0-rc2.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

radv_device.c  (mesa-21.2.0-rc1.tar.xz):radv_device.c  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 866 skipping to change at line 866
DRI_CONF_SECTION_END DRI_CONF_SECTION_END
DRI_CONF_SECTION_DEBUG DRI_CONF_SECTION_DEBUG
DRI_CONF_OVERRIDE_VRAM_SIZE() DRI_CONF_OVERRIDE_VRAM_SIZE()
DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(false) DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(false)
DRI_CONF_RADV_ZERO_VRAM(false) DRI_CONF_RADV_ZERO_VRAM(false)
DRI_CONF_RADV_LOWER_DISCARD_TO_DEMOTE(false) DRI_CONF_RADV_LOWER_DISCARD_TO_DEMOTE(false)
DRI_CONF_RADV_INVARIANT_GEOM(false) DRI_CONF_RADV_INVARIANT_GEOM(false)
DRI_CONF_RADV_DISABLE_TC_COMPAT_HTILE_GENERAL(false) DRI_CONF_RADV_DISABLE_TC_COMPAT_HTILE_GENERAL(false)
DRI_CONF_RADV_DISABLE_DCC(false) DRI_CONF_RADV_DISABLE_DCC(false)
DRI_CONF_RADV_REPORT_APU_AS_DGPU(false)
DRI_CONF_SECTION_END DRI_CONF_SECTION_END
}; };
// clang-format on // clang-format on
static void static void
radv_init_dri_options(struct radv_instance *instance) radv_init_dri_options(struct radv_instance *instance)
{ {
driParseOptionInfo(&instance->available_dri_options, radv_dri_options, driParseOptionInfo(&instance->available_dri_options, radv_dri_options,
ARRAY_SIZE(radv_dri_options)); ARRAY_SIZE(radv_dri_options));
driParseConfigFiles(&instance->dri_options, &instance->available_dri_options, 0, "radv", NULL, driParseConfigFiles(&instance->dri_options, &instance->available_dri_options, 0, "radv", NULL,
skipping to change at line 905 skipping to change at line 906
instance->debug_flags |= RADV_DEBUG_ZERO_VRAM; instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
if (driQueryOptionb(&instance->dri_options, "radv_lower_discard_to_demote")) if (driQueryOptionb(&instance->dri_options, "radv_lower_discard_to_demote"))
instance->debug_flags |= RADV_DEBUG_DISCARD_TO_DEMOTE; instance->debug_flags |= RADV_DEBUG_DISCARD_TO_DEMOTE;
if (driQueryOptionb(&instance->dri_options, "radv_invariant_geom")) if (driQueryOptionb(&instance->dri_options, "radv_invariant_geom"))
instance->debug_flags |= RADV_DEBUG_INVARIANT_GEOM; instance->debug_flags |= RADV_DEBUG_INVARIANT_GEOM;
if (driQueryOptionb(&instance->dri_options, "radv_disable_dcc")) if (driQueryOptionb(&instance->dri_options, "radv_disable_dcc"))
instance->debug_flags |= RADV_DEBUG_NO_DCC; instance->debug_flags |= RADV_DEBUG_NO_DCC;
instance->report_apu_as_dgpu =
driQueryOptionb(&instance->dri_options, "radv_report_apu_as_dgpu");
} }
VkResult VkResult
radv_CreateInstance(const VkInstanceCreateInfo *pCreateInfo, radv_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator, VkInstance *pInstan ce) const VkAllocationCallbacks *pAllocator, VkInstance *pInstan ce)
{ {
struct radv_instance *instance; struct radv_instance *instance;
VkResult result; VkResult result;
if (!pAllocator) if (!pAllocator)
skipping to change at line 1829 skipping to change at line 1833
.lineWidthRange = {0.0, 8191.875}, .lineWidthRange = {0.0, 8191.875},
.pointSizeGranularity = (1.0 / 8.0), .pointSizeGranularity = (1.0 / 8.0),
.lineWidthGranularity = (1.0 / 8.0), .lineWidthGranularity = (1.0 / 8.0),
.strictLines = false, /* FINISHME */ .strictLines = false, /* FINISHME */
.standardSampleLocations = true, .standardSampleLocations = true,
.optimalBufferCopyOffsetAlignment = 128, .optimalBufferCopyOffsetAlignment = 128,
.optimalBufferCopyRowPitchAlignment = 128, .optimalBufferCopyRowPitchAlignment = 128,
.nonCoherentAtomSize = 64, .nonCoherentAtomSize = 64,
}; };
VkPhysicalDeviceType device_type;
if (pdevice->rad_info.has_dedicated_vram || pdevice->instance->report_apu_as_
dgpu) {
device_type = VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU;
} else {
device_type = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;
}
*pProperties = (VkPhysicalDeviceProperties){ *pProperties = (VkPhysicalDeviceProperties){
.apiVersion = RADV_API_VERSION, .apiVersion = RADV_API_VERSION,
.driverVersion = vk_get_driver_version(), .driverVersion = vk_get_driver_version(),
.vendorID = ATI_VENDOR_ID, .vendorID = ATI_VENDOR_ID,
.deviceID = pdevice->rad_info.pci_id, .deviceID = pdevice->rad_info.pci_id,
.deviceType = pdevice->rad_info.has_dedicated_vram ? VK_PHYSICAL_DEVICE_TY .deviceType = device_type,
PE_DISCRETE_GPU
: VK_PHYSICAL_DEVICE_TY
PE_INTEGRATED_GPU,
.limits = limits, .limits = limits,
.sparseProperties = .sparseProperties =
{ {
.residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLAR IS10, .residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLAR IS10,
.residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_PO LARIS10, .residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_PO LARIS10,
}, },
}; };
strcpy(pProperties->deviceName, pdevice->name); strcpy(pProperties->deviceName, pdevice->name);
memcpy(pProperties->pipelineCacheUUID, pdevice->cache_uuid, VK_UUID_SIZE); memcpy(pProperties->pipelineCacheUUID, pdevice->cache_uuid, VK_UUID_SIZE);
 End of changes. 4 change blocks. 
4 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)