Home
last modified time | relevance | path

Searched refs:halfSize (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/gallium/drivers/nv50/codegen/
Dnv50_ir_build_util.cpp282 BuildUtil::mkSplit(Value *h[2], uint8_t halfSize, Value *val) in mkSplit() argument
286 const DataType fTy = typeOfSize(halfSize * 2); in mkSplit()
289 val = mkMov(getSSA(halfSize * 2), val, fTy)->getDef(0); in mkSplit()
294 h[0]->reg.size = halfSize; in mkSplit()
295 h[1]->reg.size = halfSize; in mkSplit()
296 h[1]->reg.data.offset += halfSize; in mkSplit()
298 h[0] = getSSA(halfSize, val->reg.file); in mkSplit()
299 h[1] = getSSA(halfSize, val->reg.file); in mkSplit()
Dnv50_ir_lowering_nv50.cpp56 unsigned int halfSize = typeSizeof(hTy); in expandIntegerMUL() local
69 i[0] = bld->mkSplit(a, halfSize, mul->getSrc(0)); in expandIntegerMUL()
70 i[1] = bld->mkSplit(b, halfSize, mul->getSrc(1)); in expandIntegerMUL()
74 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL()
79 Value *imm = bld->loadImm(NULL, 1 << (halfSize * 8)); in expandIntegerMUL()
85 i[8] = bld->mkOp2(OP_SHR, fTy, r[0], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL()
Dnv50_ir_build_util.h84 Instruction *mkSplit(Value *half[2], uint8_t halfSize, Value *);
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c1204 const float halfSize = 0.5F * size; in sp_setup_point() local
1275 if (halfSize <= 0.5 && !round) { in sp_setup_point()
1287 const int ixmin = block((int) (x - halfSize)); in sp_setup_point()
1288 const int ixmax = block((int) (x + halfSize)); in sp_setup_point()
1289 const int iymin = block((int) (y - halfSize)); in sp_setup_point()
1290 const int iymax = block((int) (y + halfSize)); in sp_setup_point()
1291 const float rmin = halfSize - 0.7071F; /* 0.7071 = sqrt(2)/2 */ in sp_setup_point()
1292 const float rmax = halfSize + 0.7071F; in sp_setup_point()
1350 const int xmin = (int) (x + 0.75 - halfSize); in sp_setup_point()
1351 const int ymin = (int) (y + 0.25 - halfSize); in sp_setup_point()
/external/skia/tools/
Dsk_tool_utils.cpp251 const SkPoint halfSize = SkPoint::Make(dst.width() / 2.0f, dst.height() / 2.0f); in create_hemi_normal_map() local
257 norm.fX = (x + 0.5f - center.fX) / halfSize.fX; in create_hemi_normal_map()
258 norm.fY = (y + 0.5f - center.fY) / halfSize.fY; in create_hemi_normal_map()