mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
iris: Make an IRIS_MAX_MIPLEVELS define
This commit is contained in:
parent
455c959689
commit
07ec1f0b25
2 changed files with 3 additions and 1 deletions
|
|
@ -30,6 +30,8 @@
|
|||
struct iris_batch;
|
||||
struct iris_context;
|
||||
|
||||
#define IRIS_MAX_MIPLEVELS 15
|
||||
|
||||
struct iris_format_info {
|
||||
enum isl_format fmt;
|
||||
struct isl_swizzle swizzle;
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
return BRW_MAX_DRAW_BUFFERS;
|
||||
case PIPE_CAP_MAX_TEXTURE_2D_LEVELS:
|
||||
case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
|
||||
return 15; /* 16384x16384 */
|
||||
return IRIS_MAX_MIPLEVELS; /* 16384x16384 */
|
||||
case PIPE_CAP_MAX_TEXTURE_3D_LEVELS:
|
||||
return 12; /* 2048x2048 */
|
||||
case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue