mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
iris: initial gpu state
This commit is contained in:
parent
0477591355
commit
bae5414594
3 changed files with 4 additions and 3 deletions
|
|
@ -117,6 +117,7 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
|||
iris_init_program_cache(ice);
|
||||
|
||||
iris_init_batch(&ice->render_batch, screen, &ice->dbg, I915_EXEC_RENDER);
|
||||
iris_upload_initial_gpu_state(&ice->render_batch);
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ void iris_init_query_functions(struct pipe_context *ctx);
|
|||
void iris_setup_state_base_address(struct iris_context *ice,
|
||||
struct iris_batch *batch,
|
||||
struct iris_bo *instruction_bo);
|
||||
void iris_upload_initial_gpu_state(struct iris_batch *batch);
|
||||
void iris_upload_render_state(struct iris_context *ice,
|
||||
struct iris_batch *batch,
|
||||
const struct pipe_draw_info *draw);
|
||||
|
|
|
|||
|
|
@ -282,9 +282,8 @@ ro_bo(struct iris_bo *bo, uint32_t offset)
|
|||
return (struct iris_address) { .bo = bo, .offset = offset };
|
||||
}
|
||||
|
||||
static void
|
||||
iris_upload_initial_gpu_state(struct iris_context *ice,
|
||||
struct iris_batch *batch)
|
||||
void
|
||||
iris_upload_initial_gpu_state(struct iris_batch *batch)
|
||||
{
|
||||
iris_emit_cmd(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) {
|
||||
rect.ClippedDrawingRectangleXMax = UINT16_MAX;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue