summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_resource.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-07-15 09:54:08 +0800
committerChia-I Wu <[email protected]>2014-07-15 12:00:15 +0800
commitc25fe88ebf0939ac1972cc0994819c27408ca59e (patch)
tree94c04035371645eb8b6e760512a065c025b0f260 /src/gallium/drivers/ilo/ilo_resource.c
parent81d7f33e30e7f54c5b721085057a53f9cd958fe2 (diff)
ilo: raise texture size limits
Report the hardware limits now that max-texture-size piglit test has been fixed.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_resource.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_resource.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c
index 61464a2c070..359c635b335 100644
--- a/src/gallium/drivers/ilo/ilo_resource.c
+++ b/src/gallium/drivers/ilo/ilo_resource.c
@@ -63,10 +63,13 @@ struct tex_layout {
};
/*
- * We do not know if we will fail until we try to allocate the bo.
- * So just set a limit on the texture size.
+ * From the Ivy Bridge PRM, volume 1 part 1, page 105:
+ *
+ * "In addition to restrictions on maximum height, width, and depth,
+ * surfaces are also restricted to a maximum size in bytes. This
+ * maximum is 2 GB for all products and all surface types."
*/
-static const size_t max_resource_size = 1u << 30;
+static const size_t max_resource_size = 1u << 31;
static void
tex_layout_init_qpitch(struct tex_layout *layout)