1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d9] Remove support for VERTEXSTATS queries

This commit is contained in:
WinterSnowfall 2024-04-13 20:45:09 +03:00 committed by Joshie
parent 133f0794bc
commit 571948cfc0

View File

@ -41,11 +41,6 @@ namespace dxvk {
case D3DQUERYTYPE_TIMESTAMPFREQ: case D3DQUERYTYPE_TIMESTAMPFREQ:
break; break;
case D3DQUERYTYPE_VERTEXSTATS:
m_query[0] = dxvkDevice->createGpuQuery(
VK_QUERY_TYPE_PIPELINE_STATISTICS, 0, 0);
break;
default: default:
throw DxvkError(str::format("D3D9Query: Unsupported query type ", m_queryType)); throw DxvkError(str::format("D3D9Query: Unsupported query type ", m_queryType));
} }
@ -246,11 +241,6 @@ namespace dxvk {
m_dataCache.TimestampFreq = GetTimestampQueryFrequency(); m_dataCache.TimestampFreq = GetTimestampQueryFrequency();
break; break;
case D3DQUERYTYPE_VERTEXSTATS:
m_dataCache.VertexStats.NumRenderedTriangles = queryData[0].statistic.iaPrimitives;
m_dataCache.VertexStats.NumExtraClippingTriangles = queryData[0].statistic.clipPrimitives;
break;
default: default:
break; break;
} }
@ -276,7 +266,6 @@ namespace dxvk {
void D3D9Query::Begin(DxvkContext* ctx) { void D3D9Query::Begin(DxvkContext* ctx) {
switch (m_queryType) { switch (m_queryType) {
case D3DQUERYTYPE_OCCLUSION: case D3DQUERYTYPE_OCCLUSION:
case D3DQUERYTYPE_VERTEXSTATS:
ctx->beginQuery(m_query[0]); ctx->beginQuery(m_query[0]);
break; break;
@ -296,7 +285,6 @@ namespace dxvk {
ctx->writeTimestamp(m_query[0]); ctx->writeTimestamp(m_query[0]);
break; break;
case D3DQUERYTYPE_VERTEXSTATS:
case D3DQUERYTYPE_OCCLUSION: case D3DQUERYTYPE_OCCLUSION:
ctx->endQuery(m_query[0]); ctx->endQuery(m_query[0]);
break; break;
@ -314,7 +302,6 @@ namespace dxvk {
bool D3D9Query::QueryBeginnable(D3DQUERYTYPE QueryType) { bool D3D9Query::QueryBeginnable(D3DQUERYTYPE QueryType) {
return QueryType == D3DQUERYTYPE_OCCLUSION return QueryType == D3DQUERYTYPE_OCCLUSION
|| QueryType == D3DQUERYTYPE_VERTEXSTATS
|| QueryType == D3DQUERYTYPE_TIMESTAMPDISJOINT; || QueryType == D3DQUERYTYPE_TIMESTAMPDISJOINT;
} }
@ -338,7 +325,6 @@ namespace dxvk {
case D3DQUERYTYPE_TIMESTAMP: case D3DQUERYTYPE_TIMESTAMP:
case D3DQUERYTYPE_TIMESTAMPDISJOINT: case D3DQUERYTYPE_TIMESTAMPDISJOINT:
case D3DQUERYTYPE_TIMESTAMPFREQ: case D3DQUERYTYPE_TIMESTAMPFREQ:
case D3DQUERYTYPE_VERTEXSTATS:
return D3D_OK; return D3D_OK;
default: default: