diff options
author | Rob Clark <[email protected]> | 2015-04-03 14:01:47 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-04-05 09:24:17 -0400 |
commit | 101142c401038684ca971015d7576029b9dc5e63 (patch) | |
tree | ac5c26bcfdc14f5600e2ce7ebb05a662095c6dff /src/gallium/state_trackers/xa | |
parent | 1c857727a12a45392b609949046b4abb25e3d7da (diff) |
xa: support for drivers which use NIR
We need to pull in libnir.la and it's dependency libglsl_util.la. Also,
_mesa_error_no_memory() must be defined.
Fortunately with libnir.la (vs pulling in all of libglsl.la) we don't
also need libstdc++.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xa')
-rw-r--r-- | src/gallium/state_trackers/xa/xa_tracker.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xa/xa_tracker.c b/src/gallium/state_trackers/xa/xa_tracker.c index f69ac8edf27..89019988d57 100644 --- a/src/gallium/state_trackers/xa/xa_tracker.c +++ b/src/gallium/state_trackers/xa/xa_tracker.c @@ -535,3 +535,15 @@ xa_surface_format(const struct xa_surface *srf) { return srf->fdesc.xa_format; } + +/* + * _mesa_error_no_memory() is expected by NIR to be provided by the + * user. Normally this is in mesa st, but other state trackers + * must provide their own. + */ +void _mesa_error_no_memory(const char *caller); +void +_mesa_error_no_memory(const char *caller) +{ + debug_printf("Mesa error: out of memory in %s", caller); +} |