Skip to contentSkip to conversation

sna/video: Actually use the NV12 shader on gen8

PATCH In review Ville Syrjala 2 participants 2 messages Feb 14, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sna/video: Actually use the NV12 shader on gen8

From: Ville Syrjälä <[email protected]>

Oops. We never actually select the NV12 shader on gen8, causing us to render garbage. Looks like this is the only one I somehow missed.

---
 src/sna/gen8_render.c | 3 +++
 1 file changed, 3 insertions(+)
src/sna/gen8_render.c +3 -0
index f7a797b37c56..46369d6b1193 100644
@@ -3798,6 +3798,9 @@ static unsigned select_video_kernel(const struct sna_video_frame *frame)
 	case FOURCC_XVMC:
 		return GEN8_WM_KERNEL_VIDEO_PLANAR;
 
+	case FOURCC_NV12:
+		return GEN8_WM_KERNEL_VIDEO_NV12;
+
 	case FOURCC_RGB888:
 	case FOURCC_RGB565:
 		return GEN8_WM_KERNEL_VIDEO_RGB;
Signature · 6 lines
2.13.6

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

Quoting Ville Syrjala (2018-02-14 20:27:06)

Quoted 7 lines

From: Ville Syrjälä <[email protected]>

Oops. We never actually select the NV12 shader on gen8, causing us to render garbage. Looks like this is the only one I somehow missed.

Not much of an excuse to say I tested on skl. Thanks, -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx