st/egl_g3d: Update validate to use an attachment mask.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 18 Jan 2010 04:11:15 +0000 (12:11 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 18 Jan 2010 06:28:13 +0000 (14:28 +0800)
commitfda897ad71738dd76a218280fd2e635d5dcdcee1
tree68464fd349728431c9a1175fdbf92a63829192a9
parent1ed63119452396e764a0f5b11db78903a2594df1
st/egl_g3d: Update validate to use an attachment mask.

A validate call asks for the buffers of a native surface.  Using a mask
to represent the interested buffers is more intuitive.  It also rules
out corner cases such as a single attachment being listed multiple
times.
src/gallium/state_trackers/egl_g3d/common/egl_g3d.c
src/gallium/state_trackers/egl_g3d/common/egl_g3d.h
src/gallium/state_trackers/egl_g3d/common/native.h
src/gallium/state_trackers/egl_g3d/kms/native_kms.c
src/gallium/state_trackers/egl_g3d/x11/native_dri2.c
src/gallium/state_trackers/egl_g3d/x11/native_ximage.c