From: Steinar H. Gunderson Date: Sat, 16 Sep 2017 13:38:22 +0000 (+0200) Subject: Add some inactive debugging code to store the coefficients. X-Git-Url: https://git.sesse.net/?p=narabu;a=commitdiff_plain;h=1a55483ea3ab21212525a42dd154af970c71baa9 Add some inactive debugging code to store the coefficients. --- diff --git a/decoder.shader b/decoder.shader index 77ae286..8b772c7 100644 --- a/decoder.shader +++ b/decoder.shader @@ -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 }