tgsi_to_nir: add #ifdef header guards

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Marek Olšák 2019-09-26 19:34:31 -04:00
parent e5209e6a95
commit 7fc5919793
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,9 @@
* IN THE SOFTWARE.
*/
#ifndef TGSI_TO_NIR_H
#define TGSI_TO_NIR_H
#include "compiler/nir/nir.h"
#include "pipe/p_screen.h"
@ -31,3 +34,5 @@ tgsi_to_nir(const void *tgsi_tokens,
struct nir_shader *
tgsi_to_nir_noscreen(const void *tgsi_tokens,
const nir_shader_compiler_options *options);
#endif