dw[4] = 0;
dw[5] = 0;
-
- surf->bo = NULL;
}
static void
dw[4] = 0;
dw[5] = 0;
-
- /* do not increment reference count */
- surf->bo = buf->bo;
}
static void
assert(tex->layout.align_j == 2 || tex->layout.align_j == 4);
if (tex->layout.align_j == 4)
dw[5] |= GEN6_SURFACE_DW5_VALIGN_4;
-
- /* do not increment reference count */
- surf->bo = tex->bo;
}
static void
if (ilo_dev_gen(dev) >= ILO_GEN(8))
memset(&dw[8], 0, sizeof(*dw) * (13 - 8));
-
- surf->bo = NULL;
}
static void
GEN_SHIFT32(GEN75_SCS_BLUE, GEN75_SURFACE_DW7_SCS_B) |
GEN_SHIFT32(GEN75_SCS_ALPHA, GEN75_SURFACE_DW7_SCS_A);
}
-
- /* do not increment reference count */
- surf->bo = buf->bo;
}
static void
if (ilo_dev_gen(dev) >= ILO_GEN(8))
memset(&dw[8], 0, sizeof(*dw) * (13 - 8));
-
- /* do not increment reference count */
- surf->bo = tex->bo;
}
void
view_init_null_gen6(dev,
width, height, depth, level, surf);
}
+
+ surf->bo = NULL;
+ surf->scanout = false;
}
void
view_init_for_buffer_gen6(dev, buf, offset, size,
struct_size, elem_format, is_rt, render_cache_rw, surf);
}
+
+ /* do not increment reference count */
+ surf->bo = buf->bo;
+ surf->scanout = false;
}
void
first_level, num_levels, first_layer, num_layers,
is_rt, surf);
}
+
+ /* do not increment reference count */
+ surf->bo = tex->bo;
+
+ /* assume imported RTs are scanouts */
+ surf->scanout = ((tex->base.bind & PIPE_BIND_SCANOUT) ||
+ (tex->imported && (tex->base.bind & PIPE_BIND_RENDER_TARGET)));
}
static void