Commit 059c01f0 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Import clip state

parent 8f1d110b
......@@ -1782,6 +1782,41 @@ panfrost_surface_destroy(struct pipe_context *pipe,
free(surf);
}
static void
panfrost_set_clip_state(struct pipe_context *pipe,
const struct pipe_clip_state *clip)
{
struct panfrost_context *panfrost = panfrost_context(pipe);
}
static void
panfrost_set_viewport_states(struct pipe_context *pipe,
unsigned start_slot,
unsigned num_viewports,
const struct pipe_viewport_state *viewports)
{
struct panfrost_context *panfrost = panfrost_context(pipe);
}
static void
panfrost_set_scissor_states(struct pipe_context *pipe,
unsigned start_slot,
unsigned num_scissors,
const struct pipe_scissor_state *scissors)
{
struct panfrost_context *panfrost = panfrost_context(pipe);
}
static void
panfrost_set_polygon_stipple(struct pipe_context *pipe,
const struct pipe_poly_stipple *stipple)
{
struct panfrost_context *panfrost = panfrost_context(pipe);
}
static void
panfrost_tile_texture(struct panfrost_context *ctx, struct panfrost_resource *rsrc)
{
......@@ -2006,6 +2041,11 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
gallium->set_sample_mask = panfrost_set_sample_mask;
gallium->set_clip_state = panfrost_set_clip_state;
gallium->set_viewport_states = panfrost_set_viewport_states;
gallium->set_scissor_states = panfrost_set_scissor_states;
gallium->set_polygon_stipple = panfrost_set_polygon_stipple;
#ifdef HAVE_DRI3
/* XXX: leaks */
gallium->stream_uploader = u_upload_create_default(gallium);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment