OSDN Git Service

anv/device: initialize the list of enabled extensions properly
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 5 Feb 2018 08:49:54 +0000 (09:49 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 6 Feb 2018 06:51:00 +0000 (07:51 +0100)
commita5053ba27ed76f666e315de7150433c5aaaaf2c3
treea58a3aca3a7f0211159bc93aa05c43ce91a189f4
parentef439a4fdc34749ce73bf44834c55eae9e886ac2
anv/device: initialize the list of enabled extensions properly

The loop goes through the list of enabled extensions marking them as
enabled in the list, but this relies on every other extension being
initialized to false by default.

This bug would make us, for example, advertise certain device extension
entry points as available even when the corresponding extensions had
not been enabled.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Fixes: abc62282b5c "anv: Add a per-device table of enabled extensions"
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_device.c