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:
parent
fbc3f381f3
commit
bbfbf4c6fd
@ -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)))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user