intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib: Pass I915_TILING_Y to the kernel if Yf or Ys
@ 2016-11-10 10:15 Tomeu Vizoso
  2016-11-10 16:18 ` Tvrtko Ursulin
  0 siblings, 1 reply; 3+ messages in thread
From: Tomeu Vizoso @ 2016-11-10 10:15 UTC (permalink / raw)
  To: Intel GFX discussion; +Cc: Tomeu Vizoso

GEM_SET_TILING doesn't care about Yf or Ys, so just pass Y.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---
 lib/ioctl_wrappers.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 95bc5e268bcd..eabf3ee3abe6 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -158,6 +158,9 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride)
 
 	igt_require_intel(fd);
 
+	if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys)
+		tiling = I915_TILING_Y;
+
 	memset(&st, 0, sizeof(st));
 	do {
 		st.handle = handle;
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH i-g-t] lib: Pass I915_TILING_Y to the kernel if Yf or Ys
  2016-11-10 10:15 [PATCH i-g-t] lib: Pass I915_TILING_Y to the kernel if Yf or Ys Tomeu Vizoso
@ 2016-11-10 16:18 ` Tvrtko Ursulin
  2016-11-11 10:27   ` Tvrtko Ursulin
  0 siblings, 1 reply; 3+ messages in thread
From: Tvrtko Ursulin @ 2016-11-10 16:18 UTC (permalink / raw)
  To: Tomeu Vizoso, Intel GFX discussion


On 10/11/2016 10:15, Tomeu Vizoso wrote:
> GEM_SET_TILING doesn't care about Yf or Ys, so just pass Y.
>
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> ---
>  lib/ioctl_wrappers.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
> index 95bc5e268bcd..eabf3ee3abe6 100644
> --- a/lib/ioctl_wrappers.c
> +++ b/lib/ioctl_wrappers.c
> @@ -158,6 +158,9 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride)
>
>  	igt_require_intel(fd);
>
> +	if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys)
> +		tiling = I915_TILING_Y;
> +

This is a bit nasty, breaks tests (or keeps them broken) and more so I 
can't really figure out why would you want to do this?

>  	memset(&st, 0, sizeof(st));
>  	do {
>  		st.handle = handle;
>

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH i-g-t] lib: Pass I915_TILING_Y to the kernel if Yf or Ys
  2016-11-10 16:18 ` Tvrtko Ursulin
@ 2016-11-11 10:27   ` Tvrtko Ursulin
  0 siblings, 0 replies; 3+ messages in thread
From: Tvrtko Ursulin @ 2016-11-11 10:27 UTC (permalink / raw)
  To: Tomeu Vizoso, Intel GFX discussion


On 10/11/2016 16:18, Tvrtko Ursulin wrote:
> On 10/11/2016 10:15, Tomeu Vizoso wrote:
>> GEM_SET_TILING doesn't care about Yf or Ys, so just pass Y.
>>
>> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
>> ---
>>  lib/ioctl_wrappers.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
>> index 95bc5e268bcd..eabf3ee3abe6 100644
>> --- a/lib/ioctl_wrappers.c
>> +++ b/lib/ioctl_wrappers.c
>> @@ -158,6 +158,9 @@ int __gem_set_tiling(int fd, uint32_t handle,
>> uint32_t tiling, uint32_t stride)
>>
>>      igt_require_intel(fd);
>>
>> +    if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys)
>> +        tiling = I915_TILING_Y;
>> +
>
> This is a bit nasty, breaks tests (or keeps them broken) and more so I
> can't really figure out why would you want to do this?

If I change the "tiling = I915_TILING_Y" to "I915_TILING_NONE" above 
then kms_flip_tiling passes in all but two subtests. (And those two fail 
with crc errors due broken watermarks, so not an IGT issue.)

So not going deeper into how IGT handles tiling nowadays, please 
consider the above option to fix this. It is correct at least anyway for 
i915 expectations.

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-11 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 10:15 [PATCH i-g-t] lib: Pass I915_TILING_Y to the kernel if Yf or Ys Tomeu Vizoso
2016-11-10 16:18 ` Tvrtko Ursulin
2016-11-11 10:27   ` Tvrtko Ursulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).