svga: Add missing include guards

Signed-off-by: Michał Janiszewski <janisozaur+signed@gmail.com>

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Michał Janiszewski 2018-10-29 15:51:00 -06:00 committed by Brian Paul
parent 0654450911
commit 8ebd7039c4
2 changed files with 6 additions and 0 deletions

View file

@ -31,6 +31,9 @@
* Surface/format/image helper code.
*/
#ifndef SVGA3D_SURFACEDEFS_H
#define SVGA3D_SURFACEDEFS_H
#include "svga3d_reg.h"
#define max_t(type, x, y) ((x) > (y) ? (x) : (y))
@ -1145,3 +1148,5 @@ svga3dsurface_get_pixel_offset(SVGA3dSurfaceFormat format,
x / bw * desc->bytes_per_block);
return offset;
}
#endif

View file

@ -32,6 +32,7 @@
*/
#ifndef VMW_SHADER_H_
#define VMW_SHADER_H_
#include "pipe/p_compiler.h"
#include "util/u_atomic.h"