Home | History | Annotate | Download | only in driver

Lines Matching full:state

85     if (alloc->mHal.state.hasFaces) {
99 if (alloc->mHal.state.hasFaces) {
105 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) {
107 p += alloc->mHal.state.type->getLODFaceOffset(lod, (RsAllocationCubemapFace)face, 0, 0);
110 if (alloc->mHal.state.hasFaces) {
116 alloc->mHal.state.type->getLODDimX(lod),
117 alloc->mHal.state.type->getLODDimY(lod),
121 alloc->mHal.state.type->getLODDimX(lod),
122 alloc->mHal.state.type->getLODDimY(lod),
128 if (alloc->mHal.state.mipmapControl == RS_ALLOCATION_MIPMAP_ON_SYNC_TO_TEXTURE) {
154 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT)) {
181 alloc->mHal.state.dimensionX, alloc->mHal.state.dimensionY);
189 rsAssert(!alloc->mHal.state.type->getDimY());
190 rsAssert(!alloc->mHal.state.type->getDimZ());
192 //alloc->mHal.state.usageFlags |= RS_ALLOCATION_USAGE_GRAPHICS_VERTEX;
203 RSD_CALL_GL(glBufferData, drv->glTarget, alloc->mHal.state.type->getSizeBytes(),
215 void * ptr = malloc(alloc->mHal.state.type->getSizeBytes());
222 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) {
223 if (alloc->mHal.state.hasFaces) {
229 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) {
234 drv->glType = rsdTypeToGLType(alloc->mHal.state.type->getElement()->getComponent().getType());
235 drv->glFormat = rsdKindToGLFormat(alloc->mHal.state.type->getElement()->getComponent().getKind());
242 memset(ptr, 0, alloc->mHal.state.type->getSizeBytes());
245 if (alloc->mHal.state.usageFlags & ~RS_ALLOCATION_USAGE_SCRIPT) {
293 const uint32_t oldDimX = alloc->mHal.state.dimensionX;
297 const Element *e = alloc->mHal.state.type->getElement();
354 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) {
357 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET) {
361 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) {
378 const uint32_t eSize = alloc->mHal.state.type->getElementSizeBytes();
383 if (alloc->mHal.state.hasReferences) {
397 uint32_t eSize = alloc->mHal.state.elementSizeBytes;
399 uint32_t destW = alloc->mHal.state.dimensionX;
404 dst += alloc->mHal.state.type->getLODFaceOffset(lod, face, xoff, yoff);
407 if (alloc->mHal.state.hasReferences) {
500 uint32_t eSize = alloc->mHal.state.elementSizeBytes;
504 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx);
505 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx);
507 if (alloc->mHal.state.hasReferences) {
521 uint32_t eSize = alloc->mHal.state.elementSizeBytes;
523 ptr += eSize * (x + y * alloc->mHal.state.dimensionX);
525 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx);
526 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx);
528 if (alloc->mHal.state.hasReferences) {