summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_screen.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-02-13 16:41:46 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:12 -0800
commit07ec1f0b253c552bf6b60d5b67e11089db2673e3 (patch)
tree99a8169743e92557c97ecc7f8bf1791e0aba981e /src/gallium/drivers/iris/iris_screen.c
parent455c959689ea709a8572cd34f13139887748fff8 (diff)
iris: Make an IRIS_MAX_MIPLEVELS define
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r--src/gallium/drivers/iris/iris_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 89f6f1bb85e..d831ffbc0a2 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -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: