]> git.sesse.net Git - narabu/commitdiff
Remove some obsolete caching code.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Sep 2017 13:36:56 +0000 (15:36 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Sep 2017 13:58:08 +0000 (15:58 +0200)
decoder.shader

index 512d743cb1307b2932f5a198c81f2cb562a4174a..752a6a951d8b15fecfb3ae22a611e8207459e71e 100644 (file)
@@ -58,18 +58,10 @@ uniform uint sign_bias_per_model[16];
 
 const uint RANS_BYTE_L = (1u << 23);  // lower bound of our normalization interval
 
-uint last_offset = -1, ransbuf;
-
 uint get_rans_byte(uint offset)
 {
-       if (last_offset != (offset >> 2)) {
-               last_offset = offset >> 2;
-               ransbuf = data_SSBO[offset >> 2];
-       }
-       return bitfieldExtract(ransbuf, 8 * int(offset & 3u), 8);
-
        // We assume little endian.
-//     return bitfieldExtract(data_SSBO[offset >> 2], 8 * int(offset & 3u), 8);
+       return bitfieldExtract(data_SSBO[offset >> 2], 8 * int(offset & 3u), 8);
 }
 
 uint RansDecInit(inout uint offset)