mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Cell: insert some draw_flush() calls
This commit is contained in:
parent
aa761b1605
commit
69cc19751d
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
|||
*/
|
||||
|
||||
#include "pipe/p_util.h"
|
||||
#include "pipe/draw/draw_context.h"
|
||||
#include "cell_context.h"
|
||||
#include "cell_state.h"
|
||||
|
||||
|
|
@ -49,6 +50,8 @@ cell_bind_blend_state(struct pipe_context *pipe, void *blend)
|
|||
{
|
||||
struct cell_context *cell = cell_context(pipe);
|
||||
|
||||
draw_flush(cell->draw);
|
||||
|
||||
cell->blend = (const struct pipe_blend_state *)blend;
|
||||
|
||||
cell->dirty |= CELL_NEW_BLEND;
|
||||
|
|
@ -68,6 +71,8 @@ cell_set_blend_color(struct pipe_context *pipe,
|
|||
{
|
||||
struct cell_context *cell = cell_context(pipe);
|
||||
|
||||
draw_flush(cell->draw);
|
||||
|
||||
cell->blend_color = *blend_color;
|
||||
|
||||
cell->dirty |= CELL_NEW_BLEND;
|
||||
|
|
@ -93,6 +98,8 @@ cell_bind_depth_stencil_alpha_state(struct pipe_context *pipe,
|
|||
{
|
||||
struct cell_context *cell = cell_context(pipe);
|
||||
|
||||
draw_flush(cell->draw);
|
||||
|
||||
cell->depth_stencil
|
||||
= (const struct pipe_depth_stencil_alpha_state *) depth_stencil;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue