mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 08:50:28 +01:00
Merge branch 'gallium-0.1' into gallium-tex-surfaces
This commit is contained in:
commit
d00c8a52f3
2 changed files with 13 additions and 0 deletions
|
|
@ -715,6 +715,11 @@ static void
|
|||
aaline_destroy(struct draw_stage *stage)
|
||||
{
|
||||
struct aaline_stage *aaline = aaline_stage(stage);
|
||||
uint i;
|
||||
|
||||
for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {
|
||||
pipe_texture_reference(&aaline->state.texture[i], NULL);
|
||||
}
|
||||
|
||||
if (aaline->sampler_cso)
|
||||
aaline->pipe->delete_sampler_state(aaline->pipe, aaline->sampler_cso);
|
||||
|
|
@ -838,6 +843,9 @@ aaline_set_sampler_textures(struct pipe_context *pipe,
|
|||
for (i = 0; i < num; i++) {
|
||||
pipe_texture_reference(&aaline->state.texture[i], texture[i]);
|
||||
}
|
||||
for ( ; i < PIPE_MAX_SAMPLERS; i++) {
|
||||
pipe_texture_reference(&aaline->state.texture[i], NULL);
|
||||
}
|
||||
aaline->num_textures = num;
|
||||
|
||||
/* pass-through */
|
||||
|
|
|
|||
|
|
@ -564,6 +564,11 @@ static void
|
|||
pstip_destroy(struct draw_stage *stage)
|
||||
{
|
||||
struct pstip_stage *pstip = pstip_stage(stage);
|
||||
uint i;
|
||||
|
||||
for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {
|
||||
pipe_texture_reference(&pstip->state.textures[i], NULL);
|
||||
}
|
||||
|
||||
pstip->pipe->delete_sampler_state(pstip->pipe, pstip->sampler_cso);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue