mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
gallium/tests: use cso_set_samplers
This commit is contained in:
parent
85f5722f70
commit
68dcbf4c46
1 changed files with 3 additions and 2 deletions
|
|
@ -297,6 +297,8 @@ static void close_prog(struct program *p)
|
|||
|
||||
static void draw(struct program *p)
|
||||
{
|
||||
const struct pipe_sampler_state *samplers[] = {&p->sampler};
|
||||
|
||||
/* set the render target */
|
||||
cso_set_framebuffer(p->cso, &p->framebuffer);
|
||||
|
||||
|
|
@ -310,8 +312,7 @@ static void draw(struct program *p)
|
|||
cso_set_viewport(p->cso, &p->viewport);
|
||||
|
||||
/* sampler */
|
||||
cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler);
|
||||
cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT);
|
||||
cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers);
|
||||
|
||||
/* texture sampler view */
|
||||
cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue