summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common/driverfuncs.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-11-01 15:39:16 -0500
committerMarek Olšák <marek.olsak@amd.com>2021-01-04 19:22:33 -0500
commitbd54e34e4fe4ccf4ab9b8a968808d24a0829ba9a (patch)
tree56e71175c1f463e69f02646e651517ec6e578292 /src/mesa/drivers/common/driverfuncs.c
parentdee3f34a8ebdb26a8a53b25227e3768444d91d0f (diff)
mesa: add a fallback for drivers not implementing Driver.DrawGallium*
This is for classic drivers and it translates pipe_draw_info to the old interface using _mesa_prim. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
Diffstat (limited to 'src/mesa/drivers/common/driverfuncs.c')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 88ecb934cd4..4c07c7c8ae0 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -121,8 +121,8 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
/* Draw functions */
driver->Draw = NULL;
- driver->DrawGallium = NULL;
- driver->DrawGalliumComplex = NULL;
+ driver->DrawGallium = _mesa_draw_gallium_fallback;
+ driver->DrawGalliumComplex = _mesa_draw_gallium_complex_fallback;
driver->DrawIndirect = NULL;
driver->DrawTransformFeedback = NULL;