Lines Matching full:mcontext
30 memset(&mContext, 0, sizeof(mContext));
51 return (void *)&mContext;
135 mContext.type = DC_SPRITE_PLANE;
137 mContext.type = DC_PRIMARY_PLANE;
147 mContext.ctx.sp_ctx.index = mIndex;
148 mContext.ctx.sp_ctx.pipe = mDevice;
149 mContext.ctx.sp_ctx.cntr = spriteFormat | 0x80000000;
150 mContext.ctx.sp_ctx.linoff = linoff;
151 mContext.ctx.sp_ctx.stride = stride;
155 mContext.ctx.sp_ctx.cntr |= (0x1 << 23);
159 mContext.ctx.sp_ctx.cntr |= (0x1 << 15);
162 mContext.ctx.sp_ctx.stride = align_to(srcW, 32) * 4;
163 mContext.ctx.sp_ctx.linoff = (align_to(srcW, 32) * srcH / 64) - 1;
164 mContext.ctx.sp_ctx.tileoff = (srcY & 0xfff) << 16 | (srcX & 0xfff);
165 mContext.ctx.sp_ctx.cntr |= (0x1 << 11);
168 mContext.ctx.sp_ctx.surf = mapper.getGttOffsetInPage(0) << 12;
169 mContext.gtt_key = (uint64_t)mapper.getCpuAddress(0);
173 mContext.ctx.sp_ctx.pos = ((mode->vdisplay - dstY - dstH) & 0xfff) << 16 | ((mode->hdisplay - dstX - dstW) & 0xfff);
175 mContext.ctx.sp_ctx.pos = (dstY & 0xfff) << 16 | (dstX & 0xfff);
177 mContext.ctx.sp_ctx.pos = (dstY & 0xfff) << 16 | (dstX & 0xfff);
180 mContext.ctx.sp_ctx.size =
182 mContext.ctx.sp_ctx.contalpa = planeAlpha;
183 mContext.ctx.sp_ctx.update_mask = SPRITE_UPDATE_ALL;
187 mContext.ctx.sp_ctx.cntr,
188 mContext.ctx.sp_ctx.linoff,
189 mContext.ctx.sp_ctx.stride,
190 mContext.ctx.sp_ctx.surf,
191 mContext.ctx.sp_ctx.pos,
192 mContext.ctx.sp_ctx.size,
193 mContext.ctx.sp_ctx.contalpa);
280 mContext.type = DC_SPRITE_PLANE;
282 mContext.type = DC_PRIMARY_PLANE;
294 mContext.ctx.prim_ctx.update_mask = SPRITE_UPDATE_ALL;
295 mContext.ctx.prim_ctx.index = mIndex;
296 mContext.ctx.prim_ctx.pipe = mDevice;
299 mContext.ctx.prim_ctx.linoff = (mPosition.h - 1) * stride + (mPosition.w - 1) * 4;
301 mContext.ctx.prim_ctx.linoff = 0;
303 mContext.ctx.prim_ctx.stride = stride;
304 mContext.ctx.prim_ctx.tileoff = 0;
305 mContext.ctx.prim_ctx.pos = 0;
306 mContext.ctx.prim_ctx.size =
308 mContext.ctx.prim_ctx.surf = 0;
309 mContext.ctx.prim_ctx.contalpa = planeAlpha;
310 mContext.ctx.prim_ctx.cntr = PixelFormat::PLANE_PIXEL_FORMAT_BGRA8888;
311 mContext.ctx.prim_ctx.cntr |= 0x80000000;
315 mContext.ctx.prim_ctx.cntr |= (0x1 << 23);
319 mContext.ctx.prim_ctx.cntr |= (0x1 << 15);
323 mContext.ctx.prim_ctx.cntr,
324 mContext.ctx.prim_ctx.linoff,
325 mContext.ctx.prim_ctx.stride,
326 mContext.ctx.prim_ctx.surf,
327 mContext.ctx.prim_ctx.pos,
328 mContext.ctx.prim_ctx.size,
329 mContext.ctx.sp_ctx.contalpa);