#include "main/mtypes.h"
#include "intel_batchbuffer.h"
+#include "isl/isl.h"
+
#include "brw_context.h"
#include "brw_defines.h"
#include "brw_eu.h"
batch_out(brw, name, offset, 0, "%s %s\n",
get_965_surfacetype(GET_FIELD(surf[0], BRW_SURFACE_TYPE)),
- brw_surface_format_name(GET_FIELD(surf[0], BRW_SURFACE_FORMAT)));
+ isl_format_get_name(GET_FIELD(surf[0], BRW_SURFACE_FORMAT)));
batch_out(brw, name, offset, 1, "offset\n");
batch_out(brw, name, offset, 2, "%dx%d size, %d mips\n",
GET_FIELD(surf[2], BRW_SURFACE_WIDTH) + 1,
batch_out(brw, name, offset, 0, "%s %s %s\n",
get_965_surfacetype(GET_FIELD(surf[0], BRW_SURFACE_TYPE)),
- brw_surface_format_name(GET_FIELD(surf[0], BRW_SURFACE_FORMAT)),
+ isl_format_get_name(GET_FIELD(surf[0], BRW_SURFACE_FORMAT)),
(surf[0] & GEN7_SURFACE_IS_ARRAY) ? "array" : "");
batch_out(brw, name, offset, 1, "offset\n");
batch_out(brw, name, offset, 2, "%dx%d size, %d mips, %d slices\n",
name = ralloc_asprintf(NULL, "SURF%03d", index);
batch_out(brw, name, offset, 0, "%s %s %s VALIGN%d HALIGN%d %s\n",
get_965_surfacetype(GET_FIELD(surf[0], BRW_SURFACE_TYPE)),
- brw_surface_format_name(GET_FIELD(surf[0], BRW_SURFACE_FORMAT)),
+ isl_format_get_name(GET_FIELD(surf[0], BRW_SURFACE_FORMAT)),
(surf[0] & GEN7_SURFACE_IS_ARRAY) ? "array" : "",
1 << (GET_BITS(surf[0], 17, 16) + 1), /* VALIGN */
1 << (GET_BITS(surf[0], 15, 14) + 1), /* HALIGN */