[PATCH i-g-t 3/4] lib/intel: MI_STORE_DWORD doesn't need secure batches on i965

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Oct 11 08:46:53 UTC 2024


Hi Ville,
On 2024-10-02 at 13:45:14 +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Limit the MI_STORE_DWORD secure batch usage to just g4x and ilk.
> i965 does not need this.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

Acked-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>


> ---
>  lib/igt_gt.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/igt_gt.c b/lib/igt_gt.c
> index a1075e8bbed1..b8faf2b7bd09 100644
> --- a/lib/igt_gt.c
> +++ b/lib/igt_gt.c
> @@ -704,6 +704,7 @@ bool gem_store_dword_needs_secure(int fd)
>  
>  	switch (info->graphics_ver) {
>  	case 4:
> +		return info->is_eaglelake || info->is_cantiga;
>  	case 5:
>  		return true;
>  	default:
> -- 
> 2.45.2
> 


More information about the igt-dev mailing list