[Mesa-dev] [PATCH] nv50, nvc0: allow to create resources other than buffers

2015-11-25 Thread Samuel Pitoiset
For the compute support, we might create 1D/2D/3D textures. This fixes an assertion when executing src/gallium/tests/trivial/compute. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nv50/nv50_resource.c | 2 --

Re: [Mesa-dev] [PATCH] nv50, nvc0: allow to create resources other than buffers

2015-11-25 Thread Ilia Mirkin
Yeah, but these are "restricted" surfaces. You can't use them as, e.g., render targets. And the whole surface concept is going to go away, with pipe_buffer_view and pipe_image_view. If you really like, move these asserts to where surfaces are used with the assumption that a miptree is backing