OSDN Git Service

meta/blit: Save and restore the sampler using gl_sampler_object instead of GL API...
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 11 Nov 2015 02:46:12 +0000 (18:46 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Jan 2016 23:38:03 +0000 (15:38 -0800)
commit533320e4d1367f8acb81dab6e1a15bbc3ebb2385
tree778569b7817b957639f6bc22cc37fcc042745961
parentd796b491cc0fb42c503b982a043e0e490d691353
meta/blit: Save and restore the sampler using gl_sampler_object instead of GL API object handle

Some meta operations can be called recursively.  Future changes (the
"Don't pollute the ... namespace" changes) will cause objects with
invalid names to be used.  If a nested meta operation tries to restore
an object named 0xDEADBEEF, it will fail.

v2: Add a comment explaining why samp_obj_save is set to NULL in
_mesa_meta_fb_tex_blit_begin.  This came out of review feedback from
Jason.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/common/meta.h
src/mesa/drivers/common/meta_blit.c