spirv/nir: add capability check for SpvCapabilityAtomicStorage
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 28 Oct 2017 08:57:35 +0000 (10:57 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 3 Jul 2018 10:41:46 +0000 (12:41 +0200)
commit54d7fca077d051af0b91f0684cdfa0055915b917
tree18fd9f87f9fa92e84efbb77419f1f5cf5ed132ba
parent12301766def1a5eb159644d9afa402ac187d9a01
spirv/nir: add capability check for SpvCapabilityAtomicStorage

Capability that informs if atomic counters are supported. From SPIR-V
1.0 spec, section 3.7, "Storage Class", item 10 from table:

(Column "Storage Class"):

   "AtomicCounter For holding atomic counters. Visible across all
    functions of the current invocation. Atomic counter-specific
    memory."

(Column "Required Capability"):

   "AtomicStorage"

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/shader_info.h
src/compiler/spirv/spirv_to_nir.c