mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i965: always call dri_emit_reloc when creating clip unit state
This fix ensures it gets the starting location of the clip program if a clip unit state is same as a unit which is created when metaops is actived and it doesn't impact metaops because the clip state offset isn't emitted when metaops is actived.
This commit is contained in:
parent
9bae03a583
commit
c9b1fef0c9
1 changed files with 7 additions and 8 deletions
|
|
@ -113,14 +113,13 @@ clip_unit_create_from_key(struct brw_context *brw,
|
|||
&clip, sizeof(clip),
|
||||
NULL, NULL);
|
||||
|
||||
if (!brw->metaops.active) {
|
||||
/* Emit clip program relocation */
|
||||
dri_emit_reloc(bo,
|
||||
DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_READ,
|
||||
clip.thread0.grf_reg_count << 1,
|
||||
offsetof(struct brw_clip_unit_state, thread0),
|
||||
brw->clip.prog_bo);
|
||||
}
|
||||
/* Emit clip program relocation */
|
||||
assert(brw->clip.prog_bo);
|
||||
dri_emit_reloc(bo,
|
||||
DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_READ,
|
||||
clip.thread0.grf_reg_count << 1,
|
||||
offsetof(struct brw_clip_unit_state, thread0),
|
||||
brw->clip.prog_bo);
|
||||
|
||||
return bo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue