mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
swr: use swr_query_result type instead of void
Tag pStat field in swr_draw_context structure so gen_llvm_types.py can deal with the actual structure type instead of using void. Code cleanup, no functional change. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
80bd5cd9d0
commit
b9b53e2695
2 changed files with 3 additions and 3 deletions
|
|
@ -422,7 +422,7 @@ swr_UpdateStats(HANDLE hPrivateContext, const SWR_STATS *pStats)
|
|||
if (!pDC)
|
||||
return;
|
||||
|
||||
struct swr_query_result *pqr = (struct swr_query_result *)pDC->pStats;
|
||||
struct swr_query_result *pqr = pDC->pStats;
|
||||
|
||||
SWR_STATS *pSwrStats = &pqr->core;
|
||||
|
||||
|
|
@ -439,7 +439,7 @@ swr_UpdateStatsFE(HANDLE hPrivateContext, const SWR_STATS_FE *pStats)
|
|||
if (!pDC)
|
||||
return;
|
||||
|
||||
struct swr_query_result *pqr = (struct swr_query_result *)pDC->pStats;
|
||||
struct swr_query_result *pqr = pDC->pStats;
|
||||
|
||||
SWR_STATS_FE *pSwrStats = &pqr->coreFE;
|
||||
p_atomic_add(&pSwrStats->IaVertices, pStats->IaVertices);
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ struct swr_draw_context {
|
|||
uint32_t polyStipple[32];
|
||||
|
||||
SWR_SURFACE_STATE renderTargets[SWR_NUM_ATTACHMENTS];
|
||||
void *pStats;
|
||||
struct swr_query_result *pStats; // @llvm_struct
|
||||
};
|
||||
|
||||
/* gen_llvm_types FINI */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue