Home
last modified time | relevance | path

Searched refs:ViewportArray (Results 1 – 18 of 18) sorted by relevance

/external/mesa3d/src/mesa/main/
Dviewport.c68 if (ctx->ViewportArray[idx].X == x && in set_viewport_no_notify()
69 ctx->ViewportArray[idx].Width == width && in set_viewport_no_notify()
70 ctx->ViewportArray[idx].Y == y && in set_viewport_no_notify()
71 ctx->ViewportArray[idx].Height == height) in set_viewport_no_notify()
77 ctx->ViewportArray[idx].X = x; in set_viewport_no_notify()
78 ctx->ViewportArray[idx].Width = width; in set_viewport_no_notify()
79 ctx->ViewportArray[idx].Y = y; in set_viewport_no_notify()
80 ctx->ViewportArray[idx].Height = height; in set_viewport_no_notify()
290 if (ctx->ViewportArray[idx].Near == nearval && in set_depth_range_no_notify()
291 ctx->ViewportArray[idx].Far == farval) in set_depth_range_no_notify()
[all …]
Drastpos.c451 ctx->ViewportArray[0].Near, in _mesa_RasterPos()
452 ctx->ViewportArray[0].Far); in _mesa_RasterPos()
457 ctx->ViewportArray[0].Near); in _mesa_RasterPos()
462 ctx->ViewportArray[0].Far); in _mesa_RasterPos()
711 * (ctx->ViewportArray[0].Far - ctx->ViewportArray[0].Near) in window_pos3f()
712 + ctx->ViewportArray[0].Near; in window_pos3f()
Dget.c855 v->value_float_4[0] = ctx->ViewportArray[0].X; in find_custom_value()
856 v->value_float_4[1] = ctx->ViewportArray[0].Y; in find_custom_value()
857 v->value_float_4[2] = ctx->ViewportArray[0].Width; in find_custom_value()
858 v->value_float_4[3] = ctx->ViewportArray[0].Height; in find_custom_value()
862 v->value_double_2[0] = ctx->ViewportArray[0].Near; in find_custom_value()
863 v->value_double_2[1] = ctx->ViewportArray[0].Far; in find_custom_value()
1328 v->value_enum = ctx->ViewportArray[0].SwizzleX; in find_custom_value()
1331 v->value_enum = ctx->ViewportArray[0].SwizzleY; in find_custom_value()
1334 v->value_enum = ctx->ViewportArray[0].SwizzleZ; in find_custom_value()
1337 v->value_enum = ctx->ViewportArray[0].SwizzleW; in find_custom_value()
[all …]
Dattrib.c188 struct gl_viewport_attrib ViewportArray[MAX_VIEWPORTS]; member
576 memcpy(&viewstate->ViewportArray, &ctx->ViewportArray, in _mesa_PushAttrib()
1486 const struct gl_viewport_attrib *vp = &viewstate->ViewportArray[i]; in _mesa_PopAttrib()
Dcontext.c1527 dst->ViewportArray[i] = src->ViewportArray[i]; in _mesa_copy_context()
Dmtypes.h5047 struct gl_viewport_attrib ViewportArray[MAX_VIEWPORTS]; /**< Viewport attributes */ member
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_viewport.c70 … st->state.viewport[i].swizzle_x = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleX); in st_update_viewport()
71 … st->state.viewport[i].swizzle_y = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleY); in st_update_viewport()
72 … st->state.viewport[i].swizzle_z = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleZ); in st_update_viewport()
73 … st->state.viewport[i].swizzle_w = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleW); in st_update_viewport()
Dst_cb_drawpixels.c1284 if (ctx->ViewportArray[0].Near < ctx->ViewportArray[0].Far) { in get_effective_raster_z()
1285 depth_near = ctx->ViewportArray[0].Near; in get_effective_raster_z()
1286 depth_far = ctx->ViewportArray[0].Far; in get_effective_raster_z()
1288 depth_near = ctx->ViewportArray[0].Far; in get_effective_raster_z()
1289 depth_far = ctx->ViewportArray[0].Near; in get_effective_raster_z()
/external/mesa3d/src/mesa/swrast/
Ds_depth.c174 if (ctx->ViewportArray[0].Near < ctx->ViewportArray[0].Far) { in _swrast_depth_clamp_span()
175 min_f = ctx->ViewportArray[0].Near; in _swrast_depth_clamp_span()
176 max_f = ctx->ViewportArray[0].Far; in _swrast_depth_clamp_span()
178 min_f = ctx->ViewportArray[0].Far; in _swrast_depth_clamp_span()
179 max_f = ctx->ViewportArray[0].Near; in _swrast_depth_clamp_span()
Ds_context.c76 if ( ctx->ViewportArray[0].X < 0 in _swrast_update_rasterflags()
77 || ctx->ViewportArray[0].X + ctx->ViewportArray[0].Width > (GLfloat) ctx->DrawBuffer->Width in _swrast_update_rasterflags()
78 || ctx->ViewportArray[0].Y < 0 in _swrast_update_rasterflags()
79 … || ctx->ViewportArray[0].Y + ctx->ViewportArray[0].Height > (GLfloat) ctx->DrawBuffer->Height) { in _swrast_update_rasterflags()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_util.h146 struct gl_viewport_attrib *vp = &ctx->ViewportArray[0]; in get_viewport_scale()
163 struct gl_viewport_attrib *vp = &ctx->ViewportArray[0]; in get_viewport_translate()
Dnv10_state_fb.c180 struct gl_viewport_attrib *vp = &ctx->ViewportArray[0]; in nv10_emit_viewport()
/external/deqp/external/openglcts/modules/common/
DglcViewportArrayTests.cpp49 namespace ViewportArray namespace
4801 addChild(new ViewportArray::APIErrors(m_context, m_extParams)); in init()
4802 addChild(new ViewportArray::Queries(m_context, m_extParams)); in init()
4803 addChild(new ViewportArray::ViewportAPI(m_context, m_extParams)); in init()
4804 addChild(new ViewportArray::ScissorAPI(m_context, m_extParams)); in init()
4805 addChild(new ViewportArray::DepthRangeAPI(m_context, m_extParams)); in init()
4806 addChild(new ViewportArray::ScissorTestStateAPI(m_context, m_extParams)); in init()
4807 addChild(new ViewportArray::DrawToSingleLayerWithMultipleViewports(m_context, m_extParams)); in init()
4808 addChild(new ViewportArray::DynamicViewportIndex(m_context, m_extParams)); in init()
4809 addChild(new ViewportArray::DrawMulitpleViewportsWithSingleInvocation(m_context, m_extParams)); in init()
[all …]
DglcSeparableProgramsTransformFeedbackTests.cpp37 using namespace glcts::ViewportArray;
DglcViewportArrayTests.hpp43 namespace ViewportArray namespace
/external/mesa3d/src/mesa/program/
Dprog_statevars.c361 value[0] = ctx->ViewportArray[0].Near; /* near */ in fetch_state()
362 value[1] = ctx->ViewportArray[0].Far; /* far */ in fetch_state()
363 value[2] = ctx->ViewportArray[0].Far - ctx->ViewportArray[0].Near; /* far - near */ in fetch_state()
/external/mesa3d/src/mesa/drivers/common/
Dmeta.c741 save->ViewportX = ctx->ViewportArray[0].X; in _mesa_meta_begin()
742 save->ViewportY = ctx->ViewportArray[0].Y; in _mesa_meta_begin()
743 save->ViewportW = ctx->ViewportArray[0].Width; in _mesa_meta_begin()
744 save->ViewportH = ctx->ViewportArray[0].Height; in _mesa_meta_begin()
746 if (ctx->ViewportArray[0].X != 0 || in _mesa_meta_begin()
747 ctx->ViewportArray[0].Y != 0 || in _mesa_meta_begin()
748 ctx->ViewportArray[0].Width != (float) ctx->DrawBuffer->Width || in _mesa_meta_begin()
749 ctx->ViewportArray[0].Height != (float) ctx->DrawBuffer->Height) { in _mesa_meta_begin()
754 save->DepthNear = ctx->ViewportArray[0].Near; in _mesa_meta_begin()
755 save->DepthFar = ctx->ViewportArray[0].Far; in _mesa_meta_begin()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
DgenX_state_upload.c2269 const struct gl_viewport_attrib *vp = &ctx->ViewportArray[i];
2322 bbox[0] = MAX2(ctx->ViewportArray[i].X, 0);
2323 bbox[1] = MIN2(bbox[0] + ctx->ViewportArray[i].Width, fb_width);
2324 bbox[2] = CLAMP(ctx->ViewportArray[i].Y, 0, fb_height);
2325 bbox[3] = MIN2(bbox[2] + ctx->ViewportArray[i].Height, fb_height);
2491 const float viewport_Xmin = MAX2(ctx->ViewportArray[i].X, 0);
2492 const float viewport_Ymin = MAX2(ctx->ViewportArray[i].Y, 0);
2494 MIN2(ctx->ViewportArray[i].X + ctx->ViewportArray[i].Width, fb_width);
2496 MIN2(ctx->ViewportArray[i].Y + ctx->ViewportArray[i].Height, fb_height);