Re: [Mesa-dev] [PATCH] gallium: consolidate CSO sampler and sampler_view functions

2012-08-02 Thread Marek Olšák
I just skimmed through it and couldn't find anything wrong. Reviewed-by: Marek Olšák Someday we should definitely do something like this in pipe_context too. Marek On Thu, Aug 2, 2012 at 9:16 PM, Brian Paul wrote: > Merge the vertex/fragment versions of the cso_set/save/restore_samplers() > f

[Mesa-dev] [PATCH] gallium: consolidate CSO sampler and sampler_view functions

2012-08-02 Thread Brian Paul
Merge the vertex/fragment versions of the cso_set/save/restore_samplers() functions. Now we pass the shader stage (PIPE_SHADER_x) to the function to indicate vertex/fragment/geometry samplers. For example: cso_single_sampler(cso, PIPE_SHADER_FRAGMENT, unit, sampler); This results in quite a bit