summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-05-20 16:10:41 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-05-23 19:12:34 -0700
commit9f5ccaf4dcdb308e5ce9f680b5ae267abb9c130a (patch)
tree3a00252144924dca3611caa6c678bd0a6b05bd90 /src/mesa/drivers/dri/i965/intel_mipmap_tree.c
parentd68acde1cb4825589849f512047a8cb31b3b5a35 (diff)
downloadexternal_mesa3d-9f5ccaf4dcdb308e5ce9f680b5ae267abb9c130a.zip
external_mesa3d-9f5ccaf4dcdb308e5ce9f680b5ae267abb9c130a.tar.gz
external_mesa3d-9f5ccaf4dcdb308e5ce9f680b5ae267abb9c130a.tar.bz2
i965: Use ISL for surface format introspection
With this, we can delete the surface format table in brw_surface_formats.c because all of the information we need is now in ISL.
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index a097577..beacfdb 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -26,6 +26,8 @@
#include <GL/gl.h>
#include <GL/internal/dri_interface.h>
+#include "isl/isl.h"
+
#include "intel_batchbuffer.h"
#include "intel_mipmap_tree.h"
#include "intel_resolve_map.h"
@@ -262,7 +264,8 @@ intel_miptree_supports_non_msrt_fast_clear(struct brw_context *brw,
if (brw->gen >= 9) {
mesa_format linear_format = _mesa_get_srgb_format_linear(mt->format);
const uint32_t brw_format = brw_format_for_mesa_format(linear_format);
- return brw_losslessly_compressible_format(brw, brw_format);
+ return isl_format_supports_lossless_compression(brw->intelScreen->devinfo,
+ brw_format);
} else
return true;
}