Home
last modified time | relevance | path

Searched refs:stipple (Results 1 - 25 of 47) sorted by relevance

12

/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_stipple.c31 /* Implement line stipple by cutting lines up into smaller lines.
32 * There are hundreds of ways to implement line stipple, this is one
123 struct stipple_stage *stipple = stipple_stage(stage); in stipple_line() local
142 stipple->counter = 0; in stipple_line()
144 if (stipple->rectangular) { in stipple_line()
162 bool result = stipple_test(stipple->counter + i, in stipple_line()
163 stipple->pattern, stipple->factor); in stipple_line()
181 stipple->counter += intlength; in stipple_line()
188 struct stipple_stage *stipple in reset_stipple_counter() local
196 struct stipple_stage *stipple = stipple_stage(stage); stipple_reset_point() local
204 struct stipple_stage *stipple = stipple_stage(stage); stipple_reset_tri() local
214 struct stipple_stage *stipple = stipple_stage(stage); stipple_first_line() local
248 struct stipple_stage *stipple = CALLOC_STRUCT(stipple_stage); draw_stipple_stage() local
[all...]
H A Ddraw_pipe_pstipple.c29 * Polygon stipple stage: implement polygon stipple with texture map and
32 * stipple-failing fragments.
93 const struct pipe_poly_stipple *stipple; member
123 * Generate the frag shader we'll use for doing polygon stipple.
167 * When we're about to draw our first stipple polygon in a batch, this function
211 /* we'll use sampler/texture[pstip->sampler_unit] for the stipple */ in pstip_first_tri()
295 /** Create a new polygon stipple drawing stage object */
450 const struct pipe_poly_stipple *stipple) in pstip_set_polygon_stipple()
455 pstip->state.stipple in pstip_set_polygon_stipple()
449 pstip_set_polygon_stipple(struct pipe_context *pipe, const struct pipe_poly_stipple *stipple) pstip_set_polygon_stipple() argument
[all...]
H A Ddraw_pipe.c45 draw->pipeline.stipple = draw_stipple_stage(draw); in draw_pipeline_init()
58 !draw->pipeline.stipple || in draw_pipeline_init()
87 if (draw->pipeline.stipple) in draw_pipeline_destroy()
88 draw->pipeline.stipple->destroy(draw->pipeline.stipple); in draw_pipeline_destroy()
H A Ddraw_pipe_validate.c67 /* line stipple */ in draw_need_pipeline()
102 /* polygon stipple */ in draw_need_pipeline()
204 draw->pipeline.stipple->next = next; in validate_pipeline()
205 next = draw->pipeline.stipple; in validate_pipeline()
H A Ddraw_private.h160 struct draw_stage *stipple; member
171 boolean line_stipple; /**< do line stipple? */
297 /** Rasterizer CSOs without culling/stipple/etc */
528 * These flags are used by the pipeline when unfilled and/or line stipple modes
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_stipple.c29 * \brief polygon stipple state
45 * OpenGL's polygon stipple is indexed with window coordinates in which
48 * To convert GL's polygon stipple to what gallium expects we need to
49 * invert the pattern vertically and rotate the stipple rows according
63 /** Update the stipple when the pattern or window height changes */
78 memcpy(newStipple.stipple, ctx->PolygonStipple, sizeof(newStipple.stipple)); in st_update_polygon_stipple()
80 invert_stipple(newStipple.stipple, ctx->PolygonStipple, in st_update_polygon_stipple()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_clip.c86 const struct pipe_poly_stipple *stipple) in llvmpipe_set_polygon_stipple()
92 llvmpipe->poly_stipple = *stipple; /* struct copy */ in llvmpipe_set_polygon_stipple()
85 llvmpipe_set_polygon_stipple(struct pipe_context *pipe, const struct pipe_poly_stipple *stipple) llvmpipe_set_polygon_stipple() argument
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_misc.c59 const struct pipe_poly_stipple *stipple) in svga_set_polygon_stipple()
72 /* create new stipple texture */ in svga_set_polygon_stipple()
74 util_pstipple_create_stipple_texture(pipe, stipple->stipple); in svga_set_polygon_stipple()
58 svga_set_polygon_stipple(struct pipe_context *pipe, const struct pipe_poly_stipple *stipple) svga_set_polygon_stipple() argument
/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_graphics_state.h247 } stipple; member
630 /** Line stipple
637 } stipple; member
H A Dvk_graphics_state.c487 rs->line.stipple.enable = rl_info->stippledLineEnable; in vk_rasterization_state_init()
488 if (rs->line.stipple.enable && !IS_DYNAMIC(RS_LINE_STIPPLE)) { in vk_rasterization_state_init()
489 rs->line.stipple.factor = rl_info->lineStippleFactor; in vk_rasterization_state_init()
490 rs->line.stipple.pattern = rl_info->lineStipplePattern; in vk_rasterization_state_init()
535 dst->rs.line.stipple.factor = rs->line.stipple.factor; in vk_dynamic_graphics_state_init_rs()
536 dst->rs.line.stipple.pattern = rs->line.stipple.pattern; in vk_dynamic_graphics_state_init_rs()
1571 COPY_IF_SET(RS_LINE_STIPPLE, rs.line.stipple.factor); in vk_dynamic_graphics_state_copy()
1572 COPY_IF_SET(RS_LINE_STIPPLE, rs.line.stipple in vk_dynamic_graphics_state_copy()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
H A DvktRasterizationTests.cpp899 // Using a dynamic topology can interact with the dynamic line stipple set above on some implementations, so we try to in drawPrimitives()
901 // _without_ re-setting the line stipple again. Side effects should not be visible. in drawPrimitives()
1117 LineStipple stipple,
1178 LineStipple stipple, in BaseLineTestInstance()
1193 , m_stipple (stipple) in BaseLineTestInstance()
1639 LineStipple stipple, // ignored
1670 LineStipple stipple, in PointTestInstance()
1684 DE_UNREF(stipple); in PointTestInstance()
4786 LineStipple stipple,
4794 , m_stipple (stipple)
1173 BaseLineTestInstance(Context& context, VkPrimitiveTopology primitiveTopology, PrimitiveWideness wideness, PrimitiveStrictness strictness, VkSampleCountFlagBits sampleCount, LineStipple stipple, VkLineRasterizationModeEXT lineRasterizationMode, LineStippleFactorCase stippleFactor, const deUint32 additionalRenderSize, const deUint32 renderSize, const float narrowLineWidth) BaseLineTestInstance() argument
1666 PointTestInstance(Context& context, PrimitiveWideness wideness, PrimitiveStrictness strictness, VkSampleCountFlagBits sampleCount, LineStipple stipple, VkLineRasterizationModeEXT lineRasterizationMode, LineStippleFactorCase stippleFactor, deUint32 additionalRenderSize, deUint32 renderSize, float pointSizeNarrow) PointTestInstance() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/rasterization/
H A DvktRasterizationTests.cpp896 // Using a dynamic topology can interact with the dynamic line stipple set above on some implementations, so we try to in drawPrimitives()
898 // _without_ re-setting the line stipple again. Side effects should not be visible. in drawPrimitives()
1114 LineStipple stipple,
1175 LineStipple stipple, in BaseLineTestInstance()
1190 , m_stipple (stipple) in BaseLineTestInstance()
1636 LineStipple stipple, // ignored
1667 LineStipple stipple, in PointTestInstance()
1681 DE_UNREF(stipple); in PointTestInstance()
4536 LineStipple stipple,
4544 , m_stipple (stipple)
1170 BaseLineTestInstance(Context& context, VkPrimitiveTopology primitiveTopology, PrimitiveWideness wideness, PrimitiveStrictness strictness, VkSampleCountFlagBits sampleCount, LineStipple stipple, VkLineRasterizationModeEXT lineRasterizationMode, LineStippleFactorCase stippleFactor, const deUint32 additionalRenderSize, const deUint32 renderSize, const float narrowLineWidth) BaseLineTestInstance() argument
1663 PointTestInstance(Context& context, PrimitiveWideness wideness, PrimitiveStrictness strictness, VkSampleCountFlagBits sampleCount, LineStipple stipple, VkLineRasterizationModeEXT lineRasterizationMode, LineStippleFactorCase stippleFactor, deUint32 additionalRenderSize, deUint32 renderSize, float pointSizeNarrow) PointTestInstance() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_state_clip.c85 const struct pipe_poly_stipple *stipple) in softpipe_set_polygon_stipple()
84 softpipe_set_polygon_stipple(struct pipe_context *pipe, const struct pipe_poly_stipple *stipple) softpipe_set_polygon_stipple() argument
/third_party/mesa3d/src/intel/vulkan/
H A Dgfx7_cmd_buffer.c130 ls.LineStipplePattern = dyn->rs.line.stipple.pattern; in cmd_buffer_flush_dynamic_state()
132 1.0f / MAX2(1, dyn->rs.line.stipple.factor); in cmd_buffer_flush_dynamic_state()
133 ls.LineStippleRepeatCount = dyn->rs.line.stipple.factor; in cmd_buffer_flush_dynamic_state()
H A Dgfx8_cmd_buffer.c549 ls.LineStipplePattern = dyn->rs.line.stipple.pattern; in cmd_buffer_flush_dynamic_state()
551 1.0f / MAX2(1, dyn->rs.line.stipple.factor); in cmd_buffer_flush_dynamic_state()
552 ls.LineStippleRepeatCount = dyn->rs.line.stipple.factor; in cmd_buffer_flush_dynamic_state()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_state.c405 const struct pipe_poly_stipple *stipple) in nv30_set_polygon_stipple()
409 nv30->stipple = *stipple; in nv30_set_polygon_stipple()
404 nv30_set_polygon_stipple(struct pipe_context *pipe, const struct pipe_poly_stipple *stipple) nv30_set_polygon_stipple() argument
H A Dnv30_context.h104 struct pipe_poly_stipple stipple; member
H A Dnv30_state_validate.c220 PUSH_DATAp(push, nv30->stipple.stipple, 32); in nv30_validate_stipple()
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_state.c283 const struct pipe_poly_stipple *stipple) in vc4_set_polygon_stipple()
286 vc4->stipple = *stipple; in vc4_set_polygon_stipple()
282 vc4_set_polygon_stipple(struct pipe_context *pctx, const struct pipe_poly_stipple *stipple) vc4_set_polygon_stipple() argument
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_state.c312 const struct pipe_poly_stipple *stipple) in_dt
315 ctx->stipple = *stipple;
/third_party/mesa3d/src/gallium/drivers/i915/
H A Di915_state_dynamic.c195 * Polygon stipple
197 * The i915 supports a 4x4 stipple natively, GL wants 32x32.
198 * Fortunately stipple is usually a repeating pattern.
200 * XXX: does stipple pattern need to be adjusted according to
221 const ubyte *mask = (const ubyte *)i915->poly_stipple.stipple; in upload_STIPPLE()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_context.cpp1262 if (!memcmp(ctx->pstipple.pattern, ps->stipple, sizeof(ps->stipple)))
1265 memcpy(ctx->pstipple.pattern, ps->stipple, sizeof(ps->stipple));
1266 ctx->pstipple.enabled = !!memcmp(ps->stipple, undef, sizeof(ps->stipple)) &&
1267 !!memcmp(ps->stipple, zero, sizeof(ps->stipple));
1269 util_pstipple_update_stipple_texture(pctx, ctx->pstipple.texture, ps->stipple);
2583 debug_printf("D3D12: failed to initialize polygon stipple resource
[all...]
/third_party/mesa3d/src/gallium/include/pipe/
H A Dp_state.h226 unsigned stipple[32]; member
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
H A Dnv50_context.h200 struct pipe_poly_stipple stipple; member
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_context.h244 struct pipe_poly_stipple stipple; member

Completed in 38 milliseconds

12