i965: Fix type of brw_context::render_target_format[]
It's an array of isl_format, not uint32_t. This patch updates every reference to render_target_format[] git-grep. Trivial cleanup. No change in behavior. Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
@@ -920,7 +920,7 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,
|
||||
struct blorp_batch batch;
|
||||
blorp_batch_init(&brw->blorp, &batch, brw, 0);
|
||||
blorp_fast_clear(&batch, &surf,
|
||||
(enum isl_format)brw->render_target_format[format],
|
||||
brw->render_target_format[format],
|
||||
level, logical_layer, num_layers,
|
||||
x0, y0, x1, y1);
|
||||
blorp_batch_finish(&batch);
|
||||
@@ -946,7 +946,7 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,
|
||||
struct blorp_batch batch;
|
||||
blorp_batch_init(&brw->blorp, &batch, brw, 0);
|
||||
blorp_clear(&batch, &surf,
|
||||
(enum isl_format)brw->render_target_format[format],
|
||||
brw->render_target_format[format],
|
||||
ISL_SWIZZLE_IDENTITY,
|
||||
level, irb_logical_mt_layer(irb), num_layers,
|
||||
x0, y0, x1, y1,
|
||||
|
||||
@@ -1161,7 +1161,7 @@ struct brw_context
|
||||
const struct brw_tracked_state render_atoms[76];
|
||||
const struct brw_tracked_state compute_atoms[11];
|
||||
|
||||
uint32_t render_target_format[MESA_FORMAT_COUNT];
|
||||
enum isl_format render_target_format[MESA_FORMAT_COUNT];
|
||||
bool format_supported_as_render_target[MESA_FORMAT_COUNT];
|
||||
|
||||
/* PrimitiveRestart */
|
||||
|
||||
@@ -986,7 +986,7 @@ gen4_update_renderbuffer_surface(struct brw_context *brw,
|
||||
struct intel_mipmap_tree *mt = irb->mt;
|
||||
uint32_t *surf;
|
||||
uint32_t tile_x, tile_y;
|
||||
uint32_t format = 0;
|
||||
enum isl_format format;
|
||||
uint32_t offset;
|
||||
/* _NEW_BUFFERS */
|
||||
mesa_format rb_format = _mesa_get_render_format(ctx, intel_rb_format(irb));
|
||||
@@ -1172,7 +1172,7 @@ update_renderbuffer_read_surfaces(struct brw_context *brw)
|
||||
uint32_t *surf_offset = &brw->wm.base.surf_offset[surf_index];
|
||||
|
||||
if (irb) {
|
||||
const unsigned format = brw->render_target_format[
|
||||
const enum isl_format format = brw->render_target_format[
|
||||
_mesa_get_render_format(ctx, intel_rb_format(irb))];
|
||||
assert(isl_format_supports_sampling(&brw->screen->devinfo,
|
||||
format));
|
||||
|
||||
Reference in New Issue
Block a user