diff options
author | Jerome Glisse <jglisse@redhat.com> | 2010-11-15 14:53:21 -0500 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2010-11-15 14:56:40 -0500 |
commit | 5da246944a787b933a509f0b65bab466574c3339 (patch) | |
tree | 8f58c7701dd866f31e80615ce4512b005aa5d4b4 /src/gallium/targets/dri-noop/SConscript | |
parent | 88850b3e4f5f2692bf77d46fab031bd573f4d642 (diff) |
gallium/noop: no operation gallium driver
This driver is a fake swdri driver that perform no operations
beside allocation gallium structure and buffer for upper layer
usage.
It's purpose is to help profiling core mesa/gallium without
having pipe driver overhead hidding hot spot of core code.
scons file are likely inadequate i am unfamiliar with this
build system.
To use it simply rename is to swrast_dri.so and properly set
LIBGL_DRIVERS_PATH env variable.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'src/gallium/targets/dri-noop/SConscript')
-rw-r--r-- | src/gallium/targets/dri-noop/SConscript | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gallium/targets/dri-noop/SConscript b/src/gallium/targets/dri-noop/SConscript new file mode 100644 index 0000000000..9c04ee6631 --- /dev/null +++ b/src/gallium/targets/dri-noop/SConscript @@ -0,0 +1,31 @@ +Import('*') + +env = drienv.Clone() + +env.Append(CPPPATH = [ + '#/src/gallium/winsys/sw/dri', +]) + +env.Prepend(LIBS = [ + st_drisw, + ws_dri, + noop, + mesa, + glsl, + gallium, + COMMON_DRI_SW_OBJECTS +]) + +env.Prepend(LIBS = [noop]) + +swrastg_sources = [ + 'swrast_drm_api.c' +] + +module = env.LoadableModule( + target ='noop_dri.so', + source = swrastg_sources, + SHLIBPREFIX = '', +) + +env.Alias('dri-noop', module) |