llvmpipe: move LP_MAX_TEXTURE_x_LEVELS, etc to lp_tile_size.h

This commit is contained in:
Brian Paul
2010-04-23 09:03:10 -06:00
parent ccd13da0fc
commit 71dfbb608a
3 changed files with 19 additions and 8 deletions
-2
View File
@@ -44,8 +44,6 @@ struct lp_scene_queue;
/* We're limited to 2K by 2K for 32bit fixed point rasterization.
* Will need a 64-bit version for larger framebuffers.
*/
#define MAXHEIGHT 2048
#define MAXWIDTH 2048
#define TILES_X (MAXWIDTH / TILE_SIZE)
#define TILES_Y (MAXHEIGHT / TILE_SIZE)
+1 -6
View File
@@ -31,12 +31,7 @@
#include "pipe/p_state.h"
#include "util/u_debug.h"
#define LP_MAX_TEXTURE_2D_LEVELS 12 /* 2K x 2K for now */
#define LP_MAX_TEXTURE_3D_LEVELS 10 /* 512 x 512 x 512 for now */
#define LP_MAX_TEXTURE_LEVELS LP_MAX_TEXTURE_2D_LEVELS
#include "lp_tile_size.h"
enum lp_texture_usage
@@ -36,4 +36,22 @@
#define TILE_SIZE (1 << TILE_ORDER)
/**
* Max texture sizes
*/
#define LP_MAX_TEXTURE_2D_LEVELS 12 /* 2K x 2K for now */
#define LP_MAX_TEXTURE_3D_LEVELS 10 /* 512 x 512 x 512 for now */
/** This must be the larger of LP_MAX_TEXTURE_2D/3D_LEVELS */
#define LP_MAX_TEXTURE_LEVELS LP_MAX_TEXTURE_2D_LEVELS
/**
* Max drawing surface size is the max texture size
*/
#define MAXHEIGHT (1 << (LP_MAX_TEXTURE_LEVELS - 1))
#define MAXWIDTH (1 << (LP_MAX_TEXTURE_LEVELS - 1))
#endif