anv/allocator: Better casting in PFL macros
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Mar 2016 05:27:55 +0000 (21:27 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Mar 2016 06:23:44 +0000 (22:23 -0800)
commitf61d40adc2a09221453b7a87880e134a5424773e
tree083eb2252f2dee7a127d92323fcfc1df28f9e7a5
parent3d4f2b0927acaac05e87ed07ae492e39b4c82ff7
anv/allocator: Better casting in PFL macros

We cast he constant 0xfff values to a uintptr_t before applying a bitwise
negate to ensure that they are actually 64-bit when needed.  Also, the
count variable doesn't need to be explicitly cast, it will get upcast as
needed by the "|" operation.
src/intel/vulkan/anv_allocator.c