]> git.sesse.net Git - narabu/commitdiff
Reverse the ac3/ac4 coefficients, too.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 16 Oct 2017 22:21:02 +0000 (00:21 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 16 Oct 2017 22:21:02 +0000 (00:21 +0200)
rans.shader

index 925543ef7dfa284d0fddbce411a61444438dbc9f..5b13d7ea75e25c2d63f486fb59a8c5bc54019d00 100644 (file)
@@ -148,7 +148,7 @@ void encode_8(uint streamgroup_num, uint coeff_row, layout(r8i) restrict readonl
 
        uint sign_bias = ransdist[enc.lut_base + 255].x + ransdist[enc.lut_base + 255].y;
 
-       for (uint subblock_idx = BLOCKS_PER_STREAM; subblock_idx --> 0; ) {
+       for (uint subblock_idx = 0; subblock_idx < BLOCKS_PER_STREAM; ++subblock_idx) {
                // TODO: Use SSBOs instead of a texture?
                uint x = (streamgroup_num * BLOCKS_PER_STREAM + subblock_idx) % 160;
                uint y = (streamgroup_num * BLOCKS_PER_STREAM + subblock_idx) / 160;