summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/s3v/s3v_tex.h
blob: 201ab034692e50c7633914a46cc09613f6bf2fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Author: Max Lingua <sunmax@libero.it>
 */

#ifndef _S3V_TEX_H
#define _S3V_TEX_H

#define TEX_DEBUG_ON 0

extern void s3vUpdateTexLRU( s3vContextPtr vmesa, s3vTextureObjectPtr t );

#if TEX_DEBUG_ON
        #define DEBUG_TEX(str) printf str
#else
        #define DEBUG_TEX(str) /* str */
#endif

#define _TEXFLUSH 1 /* flush before uploading */
#define _TEXLOCK  1 /* lock before writing new texures to card mem */
					/* 	if you turn it on you will gain stability and image
						quality, but you will loose performance (~10%) */
#define _TEXFALLBACK 0 /* fallback to software for -big- textures (slow) */
					/* turning this off, you will lose some tex (e.g. mountains
					   on tuxracer) but you will increase average playability */

#define _TEXALIGN 0x00000007

#endif