Skip to content

Commit

Permalink
demos: do not generate twice the HelpersDispatchTable
Browse files Browse the repository at this point in the history
The HelpersDispatchTable.* are already generated by the
encoder lib.

Signed-off-by: Stéphane Cerveau <scerveau@igalia.com>
  • Loading branch information
dabrain34 authored and zlatinski committed Nov 9, 2024
1 parent 27fc5df commit db39ecc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions vk_video_encoder/demos/vk-video-enc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
macro(generate_dispatch_table out)
add_custom_command(OUTPUT ${out}
COMMAND ${PYTHON_EXECUTABLE} ${SCRIPTS_DIR}/generate-dispatch-table.py ${out}
DEPENDS ${SCRIPTS_DIR}/generate-dispatch-table.py
)
endmacro()

macro(glsl_to_spirv src)
add_custom_command(OUTPUT ${src}.h
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glsl-to-spirv ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${CMAKE_CURRENT_SOURCE_DIR}/${src}.h ${GLSLANG_VALIDATOR}
Expand All @@ -21,9 +14,6 @@ macro(compile_cuda src)
)
endmacro()

generate_dispatch_table(${VK_VIDEO_COMMON_LIBS_SOURCE_ROOT}/VkCodecUtils/HelpersDispatchTable.h)
generate_dispatch_table(${VK_VIDEO_COMMON_LIBS_SOURCE_ROOT}/VkCodecUtils/HelpersDispatchTable.cpp)

set(sources
Main.cpp
${VK_VIDEO_ENCODER_LIBS_SOURCE_ROOT}/VkVideoEncoder/VkEncoderConfigH264.cpp
Expand Down

0 comments on commit db39ecc

Please sign in to comment.