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_trace | |
parent | 8a0dd0af3f1a6c0310a08daf4220132ec6815b31 (diff) |
gallium: add pipe_screen::finalize_nir
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/driver_trace')
-rw-r--r-- | src/gallium/auxiliary/driver_trace/tr_screen.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_trace/tr_screen.c b/src/gallium/auxiliary/driver_trace/tr_screen.c index 380e3ea7511..0d2c99cda53 100644 --- a/src/gallium/auxiliary/driver_trace/tr_screen.c +++ b/src/gallium/auxiliary/driver_trace/tr_screen.c @@ -644,6 +644,14 @@ trace_screen_get_timestamp(struct pipe_screen *_screen) } static void +trace_screen_finalize_nir(struct pipe_screen *_screen, void *nir, bool optimize) +{ + struct pipe_screen *screen = trace_screen(_screen)->screen; + + screen->finalize_nir(screen, nir, optimize); +} + +static void trace_screen_destroy(struct pipe_screen *_screen) { struct trace_screen *tr_scr = trace_screen(_screen); @@ -722,6 +730,7 @@ trace_screen_create(struct pipe_screen *screen) tr_scr->base.get_timestamp = trace_screen_get_timestamp; SCR_INIT(get_driver_uuid); SCR_INIT(get_device_uuid); + SCR_INIT(finalize_nir); tr_scr->screen = screen; |