zink: start adding C++ draw templates
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 11 May 2021 18:48:56 +0000 (14:48 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 20 Jul 2021 00:25:31 +0000 (00:25 +0000)
commitcfcc2ff03fdda14c218c96c658eb81642df3ad44
tree70053e1b5e046691ab6c656de7f810767011d1e8
parent15c7e3e9225ee692c8302e26592c2abddbcf5b8f
zink: start adding C++ draw templates

templated draw functions enable moving some checks/calculations/code
into template conditionals, which are resolved in advance of the draw call,
reducing draw overhead

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11964>
src/gallium/drivers/zink/meson.build
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h
src/gallium/drivers/zink/zink_draw.cpp [moved from src/gallium/drivers/zink/zink_draw.c with 95% similarity]
src/gallium/drivers/zink/zink_inlines.h [new file with mode: 0644]
src/gallium/drivers/zink/zink_program.c