mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium/tests/trivial: updates for CSO interface changes
This commit is contained in:
parent
c61d3fe8bd
commit
65da837fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ static void init_prog(struct program *p)
|
|||
static void close_prog(struct program *p)
|
||||
{
|
||||
/* unset bound textures as well */
|
||||
cso_set_fragment_sampler_views(p->cso, 0, NULL);
|
||||
cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 0, NULL);
|
||||
|
||||
/* unset all state */
|
||||
cso_release_all(p->cso);
|
||||
|
|
@ -323,7 +323,7 @@ static void draw(struct program *p)
|
|||
cso_single_sampler_done(p->cso);
|
||||
|
||||
/* texture sampler view */
|
||||
cso_set_fragment_sampler_views(p->cso, 1, &p->view);
|
||||
cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view);
|
||||
|
||||
/* shaders */
|
||||
cso_set_fragment_shader_handle(p->cso, p->fs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue