Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71ce33a2 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/gr: implement chsw_load() method



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 17041c7e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -25,6 +25,15 @@

#include <engine/fifo.h>

static bool
nvkm_gr_chsw_load(struct nvkm_engine *engine)
{
	struct nvkm_gr *gr = nvkm_gr(engine);
	if (gr->func->chsw_load)
		return gr->func->chsw_load(gr);
	return false;
}

static void
nvkm_gr_tile(struct nvkm_engine *engine, int region, struct nvkm_fb_tile *tile)
{
@@ -132,6 +141,7 @@ nvkm_gr = {
	.fini = nvkm_gr_fini,
	.intr = nvkm_gr_intr,
	.tile = nvkm_gr_tile,
	.chsw_load = nvkm_gr_chsw_load,
	.fifo.cclass = nvkm_gr_cclass_new,
	.fifo.sclass = nvkm_gr_oclass_get,
};
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ struct nvkm_gr_func {
	/* Returns chipset-specific counts of units packed into an u64.
	 */
	u64 (*units)(struct nvkm_gr *);
	bool (*chsw_load)(struct nvkm_gr *);
	struct nvkm_sclass sclass[];
};