File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,16 +226,16 @@ struct DVLEData
226226 u32 outputUsedReg;
227227 int outputCount;
228228
229- bool usesGshSpace () { return isGeoShader && !isCompatGeoShader; }
230- int findFreeOutput ()
229+ bool usesGshSpace () const { return isGeoShader && !isCompatGeoShader; }
230+ int findFreeOutput () const
231231 {
232232 for (int i = 0 ; i < maxOutputReg (); i ++)
233233 if (!(outputMask & BIT (i)))
234234 return i;
235235 return -1 ;
236236 }
237237
238- int findFreeInput ()
238+ int findFreeInput () const
239239 {
240240 for (int i = 0 ; i < 16 ; i ++)
241241 if (!(inputMask & BIT (i)))
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ struct UniformAllocBundle
8181
8282static UniformAllocBundle unifAlloc[2 ];
8383
84- static inline UniformAlloc& getAlloc (int type, DVLEData* dvle)
84+ static inline UniformAlloc& getAlloc (int type, const DVLEData* dvle)
8585{
8686 int x = dvle->usesGshSpace ();
8787 switch (type)
You can’t perform that action at this time.
0 commit comments