[Mesa-dev] [PATCH shader-db 4/4] add special script to run on intel hardware

Matt Turner mattst88 at gmail.com
Fri Feb 17 16:34:55 UTC 2017


On Thu, Feb 16, 2017 at 4:29 AM, Lionel Landwerlin
<lionel.g.landwerlin at intel.com> wrote:
> Intel produces fairly beefy Xeon servers on which it would be nice to be
> able to run shader-db to get some results pretty fast. Unfortunately those
> don't ship with any intel graphics IP (only ancient Matrox cards).
>
> This new script stubs a bunch of ioctls so that we can run shader-db on
> hardware that doesn't have a /dev/dri/renderD128.
>
> Example :
>
>    ./intel_run -j70 -pskl -oi965 shaders

This is awesome. Thanks a ton for building this.

>
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  Makefile     |  10 ++-
>  intel_run    |   5 ++
>  intel_stub.c | 237 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 251 insertions(+), 1 deletion(-)
>  create mode 100755 intel_run
>  create mode 100644 intel_stub.c
>
> diff --git a/Makefile b/Makefile
> index 9422b32..52a764f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -23,7 +23,15 @@ CFLAGS ?= -g -O2 -march=native -pipe
>  CFLAGS += -std=gnu99 -fopenmp
>  LDLIBS = -lepoxy -lgbm
>
> +INTEL_STUB_CFLAGS = -g -fPIC -shared -Wall `pkg-config libdrm_intel --cflags`
> +INTEL_STUB_LIBS = -ldl
> +
> +all: intel_stub.so run
> +
> +intel_stub.so: intel_stub.c
> +       gcc $(INTEL_STUB_CFLAGS) $< -o $@ $(INTEL_STUB_LIBS)

$(CC) instead of gcc.

Feel free to commit the lot!


More information about the mesa-dev mailing list