intel: Silence compiler warnings.
This commit is contained in:
@@ -117,7 +117,7 @@ intelDmaPrimitive(struct intel_context *intel, GLenum prim)
|
||||
intel_set_prim(intel, hw_prim[prim]);
|
||||
}
|
||||
|
||||
static inline GLuint intel_get_vb_max(struct intel_context *intel)
|
||||
static INLINE GLuint intel_get_vb_max(struct intel_context *intel)
|
||||
{
|
||||
GLuint ret;
|
||||
|
||||
@@ -129,7 +129,7 @@ static inline GLuint intel_get_vb_max(struct intel_context *intel)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline GLuint intel_get_current_max(struct intel_context *intel)
|
||||
static INLINE GLuint intel_get_current_max(struct intel_context *intel)
|
||||
{
|
||||
|
||||
if (intel->intelScreen->no_vbo)
|
||||
|
@@ -249,8 +249,10 @@ static void wrap_buffers( struct brw_context *brw,
|
||||
*/
|
||||
/* DON'T DO THIS AS IF WE HAVE TO RE-ORG MEMORY WE NEED SOMEWHERE WITH
|
||||
FAKE TO PUSH THIS STUFF */
|
||||
// if (!brw->intel.ttm)
|
||||
// dri_bo_fake_disable_backing_store(brw->vb.upload.bo, NULL, NULL);
|
||||
/*
|
||||
if (!brw->intel.ttm)
|
||||
dri_bo_fake_disable_backing_store(brw->vb.upload.bo, NULL, NULL);
|
||||
*/
|
||||
}
|
||||
|
||||
static void get_space( struct brw_context *brw,
|
||||
|
@@ -199,7 +199,7 @@ void brw_set_src1( struct brw_instruction *insn,
|
||||
* in the future:
|
||||
*/
|
||||
assert (reg.address_mode == BRW_ADDRESS_DIRECT);
|
||||
//assert (reg.file == BRW_GENERAL_REGISTER_FILE);
|
||||
/* assert (reg.file == BRW_GENERAL_REGISTER_FILE); */
|
||||
|
||||
if (insn->header.access_mode == BRW_ALIGN_1) {
|
||||
insn->bits3.da1.src1_subreg_nr = reg.subnr;
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "brw_context.h"
|
||||
|
||||
static inline void
|
||||
static INLINE void
|
||||
brw_add_validated_bo(struct brw_context *brw, dri_bo *bo)
|
||||
{
|
||||
assert(brw->state.validated_bo_count < ARRAY_SIZE(brw->state.validated_bos));
|
||||
|
@@ -1084,7 +1084,7 @@ static void emit_kil_nv( struct brw_wm_compile *c )
|
||||
|
||||
brw_push_insn_state(p);
|
||||
brw_set_mask_control(p, BRW_MASK_DISABLE);
|
||||
brw_NOT(p, c->emit_mask_reg, brw_mask_reg(1)); //IMASK
|
||||
brw_NOT(p, c->emit_mask_reg, brw_mask_reg(1)); /* IMASK */
|
||||
brw_AND(p, r0uw, c->emit_mask_reg, r0uw);
|
||||
brw_pop_insn_state(p);
|
||||
}
|
||||
|
@@ -743,7 +743,7 @@ static void emit_kil(struct brw_wm_compile *c)
|
||||
struct brw_reg depth = retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UW);
|
||||
brw_push_insn_state(p);
|
||||
brw_set_mask_control(p, BRW_MASK_DISABLE);
|
||||
brw_NOT(p, c->emit_mask_reg, brw_mask_reg(1)); //IMASK
|
||||
brw_NOT(p, c->emit_mask_reg, brw_mask_reg(1)); /* IMASK */
|
||||
brw_AND(p, depth, c->emit_mask_reg, depth);
|
||||
brw_pop_insn_state(p);
|
||||
}
|
||||
|
@@ -354,14 +354,14 @@ extern char *__progname;
|
||||
#define ALIGN(value, alignment) ((value + alignment - 1) & ~(alignment - 1))
|
||||
#define IS_POWER_OF_TWO(val) (((val) & (val - 1)) == 0)
|
||||
|
||||
static inline uint32_t
|
||||
static INLINE uint32_t
|
||||
U_FIXED(float value, uint32_t frac_bits)
|
||||
{
|
||||
value *= (1 << frac_bits);
|
||||
return value < 0 ? 0 : value;
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
static INLINE uint32_t
|
||||
S_FIXED(float value, uint32_t frac_bits)
|
||||
{
|
||||
return value * (1 << frac_bits);
|
||||
@@ -588,7 +588,7 @@ is_power_of_two(uint32_t value)
|
||||
return (value & (value - 1)) == 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
static INLINE void
|
||||
intel_bo_map_gtt_preferred(struct intel_context *intel,
|
||||
drm_intel_bo *bo,
|
||||
GLboolean write)
|
||||
@@ -599,7 +599,7 @@ intel_bo_map_gtt_preferred(struct intel_context *intel,
|
||||
drm_intel_bo_map(bo, write);
|
||||
}
|
||||
|
||||
static inline void
|
||||
static INLINE void
|
||||
intel_bo_unmap_gtt_preferred(struct intel_context *intel,
|
||||
drm_intel_bo *bo)
|
||||
{
|
||||
|
@@ -166,7 +166,7 @@ static GLuint get_bitmap_rect(GLsizei width, GLsizei height,
|
||||
* Returns the low Y value of the vertical range given, flipped according to
|
||||
* whether the framebuffer is or not.
|
||||
*/
|
||||
static inline int
|
||||
static INLINE int
|
||||
y_flip(struct gl_framebuffer *fb, int y, int height)
|
||||
{
|
||||
if (fb->Name != 0)
|
||||
|
@@ -109,7 +109,7 @@ do_copy_texsubimage(struct intel_context *intel,
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
// intelFlush(ctx);
|
||||
/* intelFlush(ctx); */
|
||||
LOCK_HARDWARE(intel);
|
||||
{
|
||||
drm_intel_bo *dst_bo = intel_region_buffer(intel,
|
||||
|
Reference in New Issue
Block a user