st/va: Return correct width and height for encode/decode support
authorMark Thompson <sw@jkqxz.net>
Mon, 9 Oct 2017 20:45:03 +0000 (21:45 +0100)
committerLeo Liu <leo.liu@amd.com>
Tue, 17 Oct 2017 12:23:55 +0000 (08:23 -0400)
commit31fb7bbe0be83b2ad769568829a006855639bee8
tree3297c623cbf28654d6cf0794867418b7701bddfe
parentba28c1c9f7800b81f1abfe482e2a03464d585519
st/va: Return correct width and height for encode/decode support

Previously this would return the largest possible buffer size, which is
much larger than the codecs themselves support.  This caused confusion
when client applications attempted to decode 8K video thinking it was
supported when it isn't.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/surface.c