mesa/formatquery: Add READ_PIXELS_TYPE pname
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 22 Dec 2015 17:52:38 +0000 (18:52 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000 (15:14 +0100)
commit020671f2a3d47ff35e9937b4db3fa09df6f6d488
treeb33d03cb0f48ce1503cac3cb88536a0a759dc630
parentbec286f7246bedba9f7f34185f2e1e29befec3ab
mesa/formatquery: Add READ_PIXELS_TYPE pname

We call the driver to provide its preferred type, but also provide a
default implementation that selects a generic type based on the passed
internal format.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/formatquery.c