gallium: add flatshade lowering capability
This allows the driver to request flatshade lowering. (NIR drivers only so far). Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
dc91a02a72
commit
731260de7d
|
@ -394,6 +394,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
|
||||||
case PIPE_CAP_TEXTURE_SHADOW_MAP: /* Enables ARB_shadow */
|
case PIPE_CAP_TEXTURE_SHADOW_MAP: /* Enables ARB_shadow */
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
case PIPE_CAP_FLATSHADE:
|
||||||
|
return 1;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
unreachable("bad PIPE_CAP_*");
|
unreachable("bad PIPE_CAP_*");
|
||||||
}
|
}
|
||||||
|
|
|
@ -558,6 +558,7 @@ The integer capabilities:
|
||||||
* ``PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS``: True if the driver supports Variable Pointers in SPIR-V shaders.
|
* ``PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS``: True if the driver supports Variable Pointers in SPIR-V shaders.
|
||||||
* ``PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION``: True if driver supports demote keyword in GLSL programs.
|
* ``PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION``: True if driver supports demote keyword in GLSL programs.
|
||||||
* ``PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE``: True if driver wants the TG4 component encoded in sampler swizzle rather than as a separate source.
|
* ``PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE``: True if driver wants the TG4 component encoded in sampler swizzle rather than as a separate source.
|
||||||
|
* ``PIPE_CAP_FLATSHADE``: Driver supports pipe_rasterizer_state::flatshade.
|
||||||
|
|
||||||
.. _pipe_capf:
|
.. _pipe_capf:
|
||||||
|
|
||||||
|
|
|
@ -904,6 +904,7 @@ enum pipe_cap
|
||||||
PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS,
|
PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS,
|
||||||
PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION,
|
PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION,
|
||||||
PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE,
|
PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE,
|
||||||
|
PIPE_CAP_FLATSHADE,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue