diff options
author | José Fonseca <[email protected]> | 2009-12-04 21:25:40 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-12-04 21:27:03 +0000 |
commit | c0a13bbae15a471fea278e37b92b874fed1f6b3b (patch) | |
tree | 83623958156d066d57c37ba7b54da44b09360c28 /src/gallium/drivers/llvmpipe/lp_screen.c | |
parent | a312e76468435fc1eb7ec5fe0a98601a7fdfec53 (diff) |
llvmpipe: Port vertex sampler support from softpipe.
Just enough boilerplate code to avoid segfaulting.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index a6ecaa0b2be..19fe2850fd1 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -59,7 +59,9 @@ llvmpipe_get_param(struct pipe_screen *screen, int param) case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS: return PIPE_MAX_SAMPLERS; case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS: - return 0; + return PIPE_MAX_VERTEX_SAMPLERS; + case PIPE_CAP_MAX_COMBINED_SAMPLERS: + return PIPE_MAX_SAMPLERS + PIPE_MAX_VERTEX_SAMPLERS; case PIPE_CAP_NPOT_TEXTURES: return 1; case PIPE_CAP_TWO_SIDED_STENCIL: |