Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ $else:
$if OUTPUT_IS_INDICES:
#define OUTPUT_IS_INDICES

#extension GL_EXT_debug_printf : require

void main() {
const uint out_bufi = gl_GlobalInvocationID.y;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ ${define_required_extensions(DTYPE)}

layout(std430) buffer;

#define DEBUG_MODE

#extension GL_EXT_debug_printf : enable

#include "common.glslh"

${layout_declare_tensor(B, "w", "t_cache", DTYPE, OUTPUT_STORAGE, is_scalar_array=False)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

${define_active_storage_type("texture3d")}

#extension GL_EXT_debug_printf : enable

layout(std430) buffer;

${layout_declare_tensor(B, "w", "t_out", "int", "texture3d")}
Expand All @@ -33,12 +31,6 @@ void main() {
// Pack four 8-bit values equal to 1 into a single uint
int packed = (1 << 0) | (1 << 8) | (1 << 16) | (1 << 24);

debugPrintfEXT(
"t_out[%i, %i] = %i\\n",
lpos.x, lpos.y,
packed);


// Placeholder: just copy input to output
ivec4 in_texel = ivec4(packed);
imageStore(t_out, lpos, in_texel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

${define_active_storage_type("texture2d")}

#extension GL_EXT_debug_printf : enable

layout(std430) buffer;

${layout_declare_tensor(B, "w", "t_out", "int", "texture3d")}
Expand All @@ -33,12 +31,6 @@ void main() {
// Pack four 8-bit values equal to 1 into a single uint
int packed = (1 << 0) | (1 << 8) | (1 << 16) | (1 << 24);

debugPrintfEXT(
"t_out[%i, %i] = %i\\n",
lpos.x, lpos.y,
packed);


// Placeholder: just copy input to output
ivec4 in_texel = ivec4(packed);
imageStore(t_out, lpos, in_texel);
Expand Down
Loading