struct gl_transform_feedback_object *obj)
{
struct brw_context *brw = brw_context(ctx);
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
const struct gl_program *prog;
const struct gl_transform_feedback_info *linked_xfb_info;
struct gl_transform_feedback_object *xfb_obj =
struct brw_transform_feedback_object *brw_obj =
(struct brw_transform_feedback_object *) xfb_obj;
- assert(devinfo->gen == 6);
+ assert(brw->screen->devinfo.gen == 6);
if (ctx->_Shader->CurrentProgram[MESA_SHADER_GEOMETRY]) {
/* BRW_NEW_GEOMETRY_PROGRAM */
struct brw_context *brw = brw_context(ctx);
struct brw_transform_feedback_object *brw_obj =
(struct brw_transform_feedback_object *) obj;
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
- assert(devinfo->gen == 7);
+ assert(brw->screen->devinfo.gen == 7);
/* We're about to lose the information needed to compute the number of
* vertices written during the last Begin/EndTransformFeedback section,
struct brw_context *brw = brw_context(ctx);
struct brw_transform_feedback_object *brw_obj =
(struct brw_transform_feedback_object *) obj;
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
/* Flush any drawing so that the counters have the right values. */
brw_emit_mi_flush(brw);
- assert(devinfo->gen == 7);
+ assert(brw->screen->devinfo.gen == 7);
/* Save the SOL buffer offset register values. */
for (int i = 0; i < 4; i++) {
struct brw_context *brw = brw_context(ctx);
struct brw_transform_feedback_object *brw_obj =
(struct brw_transform_feedback_object *) obj;
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
- assert(devinfo->gen == 7);
+ assert(brw->screen->devinfo.gen == 7);
/* Reload the SOL buffer offset registers. */
for (int i = 0; i < 4; i++) {
void
brw_load_register_imm32(struct brw_context *brw, uint32_t reg, uint32_t imm)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
- assert(devinfo->gen >= 6);
+ assert(brw->screen->devinfo.gen >= 6);
BEGIN_BATCH(3);
OUT_BATCH(MI_LOAD_REGISTER_IMM | (3 - 2));
void
brw_load_register_imm64(struct brw_context *brw, uint32_t reg, uint64_t imm)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
- assert(devinfo->gen >= 6);
+ assert(brw->screen->devinfo.gen >= 6);
BEGIN_BATCH(5);
OUT_BATCH(MI_LOAD_REGISTER_IMM | (5 - 2));
void
brw_load_register_reg(struct brw_context *brw, uint32_t src, uint32_t dest)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
- assert(devinfo->gen >= 8 || devinfo->is_haswell);
+ assert(brw->screen->devinfo.gen >= 8 || brw->screen->devinfo.is_haswell);
BEGIN_BATCH(3);
OUT_BATCH(MI_LOAD_REGISTER_REG | (3 - 2));
void
brw_load_register_reg64(struct brw_context *brw, uint32_t src, uint32_t dest)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
- assert(devinfo->gen >= 8 || devinfo->is_haswell);
+ assert(brw->screen->devinfo.gen >= 8 || brw->screen->devinfo.is_haswell);
BEGIN_BATCH(6);
OUT_BATCH(MI_LOAD_REGISTER_REG | (3 - 2));
bool dst_y_tiled, bool src_y_tiled,
uint32_t *__map)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
- assert(devinfo->gen >= 6);
+ assert(brw->screen->devinfo.gen >= 6);
/* Idle the blitter before we update how tiling is interpreted. */
OUT_BATCH(MI_FLUSH_DW);
struct intel_mipmap_tree *mt,
GLuint num_samples)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
- assert(devinfo->gen >= 7); /* MCS only used on Gen7+ */
+ assert(brw->screen->devinfo.gen >= 7); /* MCS only used on Gen7+ */
assert(mt->mcs_buf == NULL);
assert(mt->aux_usage == ISL_AUX_USAGE_MCS);
const struct intel_mipmap_tree *mt,
unsigned level, unsigned layer)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
-
if (!mt->mcs_buf)
return;
/* Fast color clear is supported for mipmapped surfaces only on Gen8+. */
- assert(devinfo->gen >= 8 ||
+ assert(brw->screen->devinfo.gen >= 8 ||
(level == 0 && mt->first_level == 0 && mt->last_level == 0));
/* Compression of arrayed msaa surfaces is supported. */
return;
/* Fast color clear is supported for non-msaa arrays only on Gen8+. */
- assert(devinfo->gen >= 8 ||
+ assert(brw->screen->devinfo.gen >= 8 ||
(layer == 0 &&
mt->surf.logical_level0_px.depth == 1 &&
mt->surf.logical_level0_px.array_len == 1));
void
intel_finalize_mipmap_tree(struct brw_context *brw, GLuint unit)
{
- const struct gen_device_info *devinfo = &brw->screen->devinfo;
struct gl_context *ctx = &brw->ctx;
struct gl_texture_object *tObj = ctx->Texture.Unit[unit]._Current;
struct intel_texture_object *intelObj = intel_texture_object(tObj);
*
* FINISHME: Avoid doing this.
*/
- assert(!tObj->Immutable || devinfo->gen < 6);
+ assert(!tObj->Immutable || brw->screen->devinfo.gen < 6);
firstImage = intel_texture_image(tObj->Image[0][tObj->BaseLevel]);