summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-11-01 08:02:34 -0700
committerJason Ekstrand <[email protected]>2017-11-02 09:55:21 -0700
commit172e8e42c4eb898a80e3b967d495b4b8619905c7 (patch)
tree0285568fc38777099d9ba460409e2b1af6d11f61 /src/amd/common/ac_llvm_util.h
parent7b4387519c382cffef9c62bbbbefcfe71cfde905 (diff)
intel/fs: Don't allocate a param array for zero push constants
Thanks to the ralloc invariant of "any pointer returned from ralloc can be used as a context", calling ralloc_size with a size of zero will cause it to allocate at least a header. If we don't have any push constants, then NULL is perfectly acceptable (and even preferred). Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
0 files changed, 0 insertions, 0 deletions