mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
anv: Claim to support depthBounds for ID games
Cc: "18.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
8c048af589
commit
c92a463d23
1 changed files with 9 additions and 0 deletions
|
|
@ -854,6 +854,15 @@ void anv_GetPhysicalDeviceFeatures(
|
|||
pFeatures->vertexPipelineStoresAndAtomics =
|
||||
pdevice->compiler->scalar_stage[MESA_SHADER_VERTEX] &&
|
||||
pdevice->compiler->scalar_stage[MESA_SHADER_GEOMETRY];
|
||||
|
||||
struct anv_app_info *app_info = &pdevice->instance->app_info;
|
||||
|
||||
/* The new DOOM and Wolfenstein games require depthBounds without
|
||||
* checking for it. They seem to run fine without it so just claim it's
|
||||
* there and accept the consequences.
|
||||
*/
|
||||
if (app_info->engine_name && strcmp(app_info->engine_name, "idTech") == 0)
|
||||
pFeatures->depthBounds = true;
|
||||
}
|
||||
|
||||
void anv_GetPhysicalDeviceFeatures2(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue