OSDN Git Service

anv/device: Set device->info sooner in CreateDevice
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Dec 2015 21:26:49 +0000 (13:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Dec 2015 21:29:01 +0000 (13:29 -0800)
commit9c84b6cce007e6ad7877c4787346b3a45ab1b0c7
treeddd49d6dd6211224f48d9ca561e60939dcb98dc1
parent763176a3e2166b2f1757582948e985d6bca9531c
anv/device: Set device->info sooner in CreateDevice

anv_block_pool_init calls anv_block_pool_grow which checks
device->info.has_llc to see if it needs to set caching parameters.
If we don't set device->info early enough, this reads an undefined value
which is probably 0 and not what we want on llc platforms.

Found with valgrind.
src/vulkan/anv_device.c