picasso: Mark member functions of DVLEData as const

These only query state about the data, they don't modify it
This commit is contained in:
Lioncash 2017-12-28 17:33:06 -05:00 committed by fincs
parent fbc3f381f3
commit bbfbf4c6fd
2 changed files with 4 additions and 4 deletions

View File

@ -226,8 +226,8 @@ struct DVLEData
u32 outputUsedReg;
int outputCount;
bool usesGshSpace() { return isGeoShader && !isCompatGeoShader; }
int findFreeOutput()
bool usesGshSpace() const { return isGeoShader && !isCompatGeoShader; }
int findFreeOutput() const
{
for (int i = 0; i < maxOutputReg(); i ++)
if (!(outputMask & BIT(i)))
@ -235,7 +235,7 @@ struct DVLEData
return -1;
}
int findFreeInput()
int findFreeInput() const
{
for (int i = 0; i < 16; i ++)
if (!(inputMask & BIT(i)))

View File

@ -81,7 +81,7 @@ struct UniformAllocBundle
static UniformAllocBundle unifAlloc[2];
static inline UniformAlloc& getAlloc(int type, DVLEData* dvle)
static inline UniformAlloc& getAlloc(int type, const DVLEData* dvle)
{
int x = dvle->usesGshSpace();
switch (type)