diff options
author | Ilia Mirkin <[email protected]> | 2020-03-01 19:14:02 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2020-03-02 19:55:06 -0500 |
commit | 1d3b0b908880029b06c0b54b8d32c53e7f4d5895 (patch) | |
tree | 8c1e8ae3069af4ebe0513d390003d3bb4302b371 /src/gallium | |
parent | 62f7197fb54d2fbb7bd5646115008d3c27a3dfb9 (diff) |
nv50,nvc0: add newly added PIPE_CAP's to list
Signed-off-by: Ilia Mirkin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4014>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_screen.c | 17 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c index a8600345055..6a83d79fdb1 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c @@ -159,11 +159,14 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return 16 * 1024 * 1024; case PIPE_CAP_MAX_VARYINGS: return 15; + case PIPE_CAP_MAX_VERTEX_BUFFERS: + return 16; /* supported caps */ case PIPE_CAP_TEXTURE_MIRROR_CLAMP: case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE: case PIPE_CAP_TEXTURE_SWIZZLE: + case PIPE_CAP_TEXTURE_SHADOW_MAP: case PIPE_CAP_NPOT_TEXTURES: case PIPE_CAP_MIXED_FRAMEBUFFER_SIZES: case PIPE_CAP_MIXED_COLOR_DEPTH_BITS: @@ -221,6 +224,12 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION: case PIPE_CAP_DEST_SURFACE_SRGB_CONTROL: case PIPE_CAP_TGSI_DIV: + case PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF: + case PIPE_CAP_FLATSHADE: + case PIPE_CAP_ALPHA_TEST: + case PIPE_CAP_POINT_SIZE_FIXED: + case PIPE_CAP_TWO_SIDED_COLOR: + case PIPE_CAP_CLIP_PLANES: return 1; case PIPE_CAP_SEAMLESS_CUBE_MAP: return 1; /* class_3d >= NVA0_3D_CLASS; */ @@ -262,6 +271,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_DRAW_PARAMETERS: case PIPE_CAP_TGSI_PACK_HALF_FLOAT: case PIPE_CAP_TGSI_FS_POSITION_IS_SYSVAL: + case PIPE_CAP_TGSI_FS_POINT_IS_SYSVAL: case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT: case PIPE_CAP_GENERATE_MIPMAP: case PIPE_CAP_BUFFER_SAMPLER_VIEW_RGBA_ONLY: @@ -331,6 +341,13 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS: case PIPE_CAP_TGSI_ATOMINC_WRAP: case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION: + case PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE: + case PIPE_CAP_OPENCL_INTEGER_FUNCTIONS: + case PIPE_CAP_INTEGER_MULTIPLY_32X16: /* could be done */ + case PIPE_CAP_FRONTEND_NOOP: + case PIPE_CAP_GL_SPIRV: + case PIPE_CAP_SHADER_SAMPLES_IDENTICAL: + case PIPE_CAP_TEXTURE_SHADOW_LOD: /* investigate */ return 0; case PIPE_CAP_VENDOR_ID: diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index 92651e91552..c2bdb2e8058 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c @@ -192,11 +192,14 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) * COLOR, etc. here. */ return 0x1f0 / 16; + case PIPE_CAP_MAX_VERTEX_BUFFERS: + return 16; /* supported caps */ case PIPE_CAP_TEXTURE_MIRROR_CLAMP: case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE: case PIPE_CAP_TEXTURE_SWIZZLE: + case PIPE_CAP_TEXTURE_SHADOW_MAP: case PIPE_CAP_NPOT_TEXTURES: case PIPE_CAP_MIXED_FRAMEBUFFER_SIZES: case PIPE_CAP_MIXED_COLOR_DEPTH_BITS: @@ -283,6 +286,12 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_ATOMINC_WRAP: case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION: case PIPE_CAP_DEVICE_RESET_STATUS_QUERY: + case PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF: + case PIPE_CAP_FLATSHADE: + case PIPE_CAP_ALPHA_TEST: + case PIPE_CAP_POINT_SIZE_FIXED: + case PIPE_CAP_TWO_SIDED_COLOR: + case PIPE_CAP_CLIP_PLANES: return 1; case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER: return nouveau_screen(pscreen)->vram_domain & NOUVEAU_BO_VRAM ? 1 : 0; @@ -325,6 +334,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_VERTEXID_NOBASE: case PIPE_CAP_RESOURCE_FROM_USER_MEMORY: case PIPE_CAP_TGSI_FS_POSITION_IS_SYSVAL: + case PIPE_CAP_TGSI_FS_POINT_IS_SYSVAL: case PIPE_CAP_GENERATE_MIPMAP: case PIPE_CAP_BUFFER_SAMPLER_VIEW_RGBA_ONLY: case PIPE_CAP_SURFACE_REINTERPRET_BLOCKS: @@ -366,6 +376,13 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED: case PIPE_CAP_FBFETCH_COHERENT: case PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS: + case PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE: + case PIPE_CAP_OPENCL_INTEGER_FUNCTIONS: /* could be done */ + case PIPE_CAP_INTEGER_MULTIPLY_32X16: /* could be done */ + case PIPE_CAP_FRONTEND_NOOP: + case PIPE_CAP_GL_SPIRV: + case PIPE_CAP_SHADER_SAMPLES_IDENTICAL: + case PIPE_CAP_TEXTURE_SHADOW_LOD: /* should be possible */ return 0; case PIPE_CAP_VENDOR_ID: |