]> git.sesse.net Git - narabu/commitdiff
Add some inactive debugging code to store the coefficients.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Sep 2017 13:38:22 +0000 (15:38 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Sep 2017 13:58:08 +0000 (15:58 +0200)
decoder.shader

index 77ae2869f08c54cf3a4fafbc6d101e6dba62a408..8b772c70fbefdd228ce6be25c6faff7ae1cea045 100644 (file)
@@ -9,6 +9,7 @@ layout(local_size_x = 64*PARALLEL_SLICES) in;
 layout(r8ui) uniform restrict readonly uimage2D cum2sym_tex;
 layout(rg16ui) uniform restrict readonly uimage2D dsyms_tex;
 layout(r8) uniform restrict writeonly image2D out_tex;
+layout(r16i) uniform restrict writeonly iimage2D coeff_tex;
 
 const uint prob_bits = 12;
 const uint prob_scale = 1 << prob_bits;
@@ -251,6 +252,12 @@ void main()
                                last_k = k;
                        }
 
+#if 0
+                       uint y = block_row * 16 + block_y * 8 + local_y;
+                       uint x = block_x * 64 + subblock_idx * 8 + local_x;
+                       imageStore(coeff_tex, ivec2(x, y), ivec4(k, 0,0,0));
+#endif
+
                        temp[slice_num * 64 * 8 + subblock_idx * 64 + coeff_num] = k * q;
                        //temp[subblock_idx * 64 + 8 * y + x] = (2 * k * w * 4) / 32;  // 100% matching unquant
                }