diff options
author | Marek Olšák <[email protected]> | 2011-09-27 22:22:06 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-09-30 23:19:52 +0200 |
commit | f5bfe54a34d9c8cd5de2b096d0e8486fe0d990a7 (patch) | |
tree | 5c61a58b22bd018661f8b4f12e5974bf07b18c20 /src/gallium/state_trackers/d3d1x | |
parent | 557c3febdfd88ba1a41d3e8e0221e447d491c343 (diff) |
gallium: add and use PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS
This removes:
- PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS
- PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS
in favor of the that new per-shader cap.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/d3d1x')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index 9d8bbd89537..ca2636cb6ba 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -102,7 +102,7 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen } screen_caps.stages_with_sampling = (1 << screen_caps.stages) - 1; - if(!screen->get_param(screen, PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS)) + if(!screen->get_shader_param(screen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS)) screen_caps.stages_with_sampling &=~ (1 << PIPE_SHADER_VERTEX); memset(format_support, 0xff, sizeof(format_support)); |