Skip to content

Commit 0d7fc24

Browse files
author
Ben Skeggs
committed
drm/nouveau/gr/gf100-: fix oops when calling zbc methods
Somehow missed these two when removing dodgy void casts during the rework. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 2fb2b3c commit 0d7fc24

File tree

1 file changed

+2
-2
lines changed
  • drivers/gpu/drm/nouveau/nvkm/engine/gr

1 file changed

+2
-2
lines changed

drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ gf100_gr_zbc_depth_get(struct gf100_gr *gr, int format,
143143
static int
144144
gf100_fermi_mthd_zbc_color(struct nvkm_object *object, void *data, u32 size)
145145
{
146-
struct gf100_gr *gr = (void *)object->engine;
146+
struct gf100_gr *gr = gf100_gr(nvkm_gr(object->engine));
147147
union {
148148
struct fermi_a_zbc_color_v0 v0;
149149
} *args = data;
@@ -189,7 +189,7 @@ gf100_fermi_mthd_zbc_color(struct nvkm_object *object, void *data, u32 size)
189189
static int
190190
gf100_fermi_mthd_zbc_depth(struct nvkm_object *object, void *data, u32 size)
191191
{
192-
struct gf100_gr *gr = (void *)object->engine;
192+
struct gf100_gr *gr = gf100_gr(nvkm_gr(object->engine));
193193
union {
194194
struct fermi_a_zbc_depth_v0 v0;
195195
} *args = data;

0 commit comments

Comments
 (0)