[Mesa-dev] [PATCH shader-db 3/4] run: set INTEL_NO_HW together with INTEL_DEVID_OVERRIDE

Kenneth Graunke kenneth at whitecape.org
Thu Feb 16 20:02:50 UTC 2017


On Thursday, February 16, 2017 4:29:50 AM PST Lionel Landwerlin wrote:
> Since we're already asking the driver to generate code for a different
> hardware than what we're running on, better not even bother with emitting
> any batch.
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  run.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/run.c b/run.c
> index 62c19c8..7543b2a 100644
> --- a/run.c
> +++ b/run.c
> @@ -370,6 +370,7 @@ main(int argc, char **argv)
>  
>              printf("### Compiling for %s ###\n", platform->name);
>              setenv("INTEL_DEVID_OVERRIDE", platform->pci_id, 1);
> +            setenv("INTEL_NO_HW", "1", 1);
>              break;
>          }
>          case 'j':
> 

I don't think you need this patch - libdrm will already not execute
batches if INTEL_DEVID_OVERRIDE is used to force a PCI ID that doesn't
match the one on the system.

Unless the fake PCI ID happens to match the one you're compiling for...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170216/04b7c2c2/attachment.sig>


More information about the mesa-dev mailing list