Skip to content

Commit 16902f9

Browse files
committed
[HACK] turnip: re-enable GS/TS on gen8
1 parent 0ca4177 commit 16902f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/freedreno/vulkan/tu_device.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ tu_get_features(struct tu_physical_device *pdevice,
381381
features->fullDrawIndexUint32 = true;
382382
features->imageCubeArray = true;
383383
features->independentBlend = true;
384-
features->geometryShader = !pdevice->info->props.is_a702 && (pdevice->info->chip != 8);
385-
features->tessellationShader = !pdevice->info->props.is_a702 && (pdevice->info->chip != 8);
384+
features->geometryShader = !pdevice->info->props.is_a702;
385+
features->tessellationShader = !pdevice->info->props.is_a702;
386386
features->sampleRateShading = true;
387387
features->dualSrcBlend = true;
388388
features->logicOp = true;
@@ -405,7 +405,7 @@ tu_get_features(struct tu_physical_device *pdevice,
405405
features->pipelineStatisticsQuery = true;
406406
features->vertexPipelineStoresAndAtomics = true;
407407
features->fragmentStoresAndAtomics = true;
408-
features->shaderTessellationAndGeometryPointSize = !pdevice->info->props.is_a702 && (pdevice->info->chip != 8);
408+
features->shaderTessellationAndGeometryPointSize = !pdevice->info->props.is_a702;
409409
features->shaderImageGatherExtended = true;
410410
features->shaderStorageImageExtendedFormats = true;
411411
features->shaderStorageImageMultisample = false;
@@ -651,7 +651,7 @@ tu_get_features(struct tu_physical_device *pdevice,
651651

652652
/* VK_EXT_extended_dynamic_state3 */
653653
features->extendedDynamicState3PolygonMode = true;
654-
features->extendedDynamicState3TessellationDomainOrigin = !pdevice->info->props.is_a702 && (pdevice->info->chip != 8);
654+
features->extendedDynamicState3TessellationDomainOrigin = !pdevice->info->props.is_a702;
655655
features->extendedDynamicState3DepthClampEnable = true;
656656
features->extendedDynamicState3DepthClipEnable = true;
657657
features->extendedDynamicState3LogicOpEnable = true;
@@ -858,7 +858,7 @@ tu_get_physical_device_properties_1_1(struct tu_physical_device *pdevice,
858858
if (pdevice->info->props.has_getfiberid) {
859859
p->subgroupSupportedStages |= VK_SHADER_STAGE_ALL_GRAPHICS;
860860
p->subgroupSupportedOperations |= VK_SUBGROUP_FEATURE_QUAD_BIT;
861-
if (pdevice->info->chip == 8) {
861+
if (false) {
862862
p->subgroupSupportedStages &= ~(VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT |
863863
VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT |
864864
VK_SHADER_STAGE_GEOMETRY_BIT);
@@ -1096,7 +1096,7 @@ tu_get_properties(struct tu_physical_device *pdevice,
10961096
props->maxVertexInputAttributeOffset = 4095;
10971097
props->maxVertexInputBindingStride = 2048;
10981098
props->maxVertexOutputComponents = pdevice->info->props.is_a702 ? 64 : 128;
1099-
if (!pdevice->info->props.is_a702 && (pdevice->info->chip != 8)) {
1099+
if (!pdevice->info->props.is_a702) {
11001100
props->maxTessellationGenerationLevel = 64;
11011101
props->maxTessellationPatchSize = 32;
11021102
props->maxTessellationControlPerVertexInputComponents = 128;

0 commit comments

Comments
 (0)