spirv: consistently use ifndef guards over pragma once
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Vedran Miletić <vedran@miletic.net> Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef _NIR_SPIRV_H_
|
||||
#define _NIR_SPIRV_H_
|
||||
|
||||
|
@@ -21,7 +21,12 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _SPIRV_INFO_H_
|
||||
#define _SPIRV_INFO_H_
|
||||
|
||||
#include "spirv.h"
|
||||
|
||||
const char *spirv_capability_to_string(SpvCapability cap);
|
||||
const char *spirv_decoration_to_string(SpvDecoration dec);
|
||||
|
||||
#endif /* SPIRV_INFO_H */
|
||||
|
@@ -25,6 +25,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _VTN_PRIVATE_H_
|
||||
#define _VTN_PRIVATE_H_
|
||||
|
||||
#include "nir/nir.h"
|
||||
#include "nir/nir_builder.h"
|
||||
#include "nir/nir_array.h"
|
||||
@@ -496,3 +499,5 @@ vtn_u64_literal(const uint32_t *w)
|
||||
{
|
||||
return (uint64_t)w[1] << 32 | w[0];
|
||||
}
|
||||
|
||||
#endif /* _VTN_PRIVATE_H_ */
|
||||
|
Reference in New Issue
Block a user