diff options
author | Marek Olšák <[email protected]> | 2019-10-17 21:28:56 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-10-23 21:12:52 -0400 |
commit | fb04e5da97d904ab1dc7e0182bcba77071bbe340 (patch) | |
tree | 1dc96b29f5ef0bfd666c13fcbd3f2d8f740c9452 /src/gallium/auxiliary/driver_ddebug | |
parent | 8a0dd0af3f1a6c0310a08daf4220132ec6815b31 (diff) |
gallium: add pipe_screen::finalize_nir
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/driver_ddebug')
-rw-r--r-- | src/gallium/auxiliary/driver_ddebug/dd_screen.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_screen.c b/src/gallium/auxiliary/driver_ddebug/dd_screen.c index b66d24babb9..7e8ea4cca48 100644 --- a/src/gallium/auxiliary/driver_ddebug/dd_screen.c +++ b/src/gallium/auxiliary/driver_ddebug/dd_screen.c @@ -412,6 +412,14 @@ dd_screen_memobj_destroy(struct pipe_screen *_screen, */ static void +dd_screen_finalize_nir(struct pipe_screen *_screen, void *nir, bool optimize) +{ + struct pipe_screen *screen = dd_screen(_screen)->screen; + + screen->finalize_nir(screen, nir, optimize); +} + +static void dd_screen_destroy(struct pipe_screen *_screen) { struct dd_screen *dscreen = dd_screen(_screen); @@ -597,6 +605,7 @@ ddebug_screen_create(struct pipe_screen *screen) SCR_INIT(get_compiler_options); SCR_INIT(get_driver_uuid); SCR_INIT(get_device_uuid); + SCR_INIT(finalize_nir); #undef SCR_INIT |