Skip to content

Commit

Permalink
vo_gpu: vulkan: omit needless #define
Browse files Browse the repository at this point in the history
  • Loading branch information
haasn committed Oct 17, 2017
1 parent 6e8846f commit 0a58165
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions video/out/gpu/shader_cache.c
Expand Up @@ -796,11 +796,6 @@ static void gl_sc_generate(struct gl_shader_cache *sc,
ADD(header, "#define texture texture2D\n");
}

if (sc->ra->glsl_vulkan && type == RA_RENDERPASS_TYPE_COMPUTE) {
ADD(header, "#define gl_GlobalInvocationIndex "
"(gl_WorkGroupID * gl_WorkGroupSize + gl_LocalInvocationID)\n");
}

// Additional helpers.
ADD(header, "#define LUT_POS(x, lut_size)"
" mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))\n");
Expand Down

0 comments on commit 0a58165

Please sign in to comment.