v3d: Stop advertising support for PIPE_CAP_*_COLOR_CLAMPED.
The GL frontend can lower away this deprecated GL feature for us. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8601>
This commit is contained in:
@@ -389,7 +389,6 @@ struct v3d_fs_key {
|
||||
bool sample_coverage;
|
||||
bool sample_alpha_to_coverage;
|
||||
bool sample_alpha_to_one;
|
||||
bool clamp_color;
|
||||
bool shade_model_flat;
|
||||
/* Mask of which color render targets are present. */
|
||||
uint8_t cbufs;
|
||||
|
||||
@@ -960,9 +960,6 @@ v3d_nir_lower_gs_late(struct v3d_compile *c)
|
||||
static void
|
||||
v3d_nir_lower_vs_late(struct v3d_compile *c)
|
||||
{
|
||||
if (c->vs_key->clamp_color)
|
||||
NIR_PASS_V(c->s, nir_lower_clamp_color_outputs);
|
||||
|
||||
if (c->key->ucp_enables) {
|
||||
NIR_PASS_V(c->s, nir_lower_clip_vs, c->key->ucp_enables,
|
||||
false, false, NULL);
|
||||
@@ -977,9 +974,6 @@ v3d_nir_lower_vs_late(struct v3d_compile *c)
|
||||
static void
|
||||
v3d_nir_lower_fs_late(struct v3d_compile *c)
|
||||
{
|
||||
if (c->fs_key->clamp_color)
|
||||
NIR_PASS_V(c->s, nir_lower_clamp_color_outputs);
|
||||
|
||||
/* In OpenGL the fragment shader can't read gl_ClipDistance[], but
|
||||
* Vulkan allows it, in which case the SPIR-V compiler will declare
|
||||
* VARING_SLOT_CLIP_DIST0 as compact array variable. Pass true as
|
||||
|
||||
@@ -1106,9 +1106,6 @@ pipeline_populate_v3d_fs_key(struct v3d_fs_key *key,
|
||||
key->is_lines = (topology >= PIPE_PRIM_LINES &&
|
||||
topology <= PIPE_PRIM_LINE_STRIP);
|
||||
|
||||
/* Vulkan doesn't appear to specify (anv does the same) */
|
||||
key->clamp_color = false;
|
||||
|
||||
const VkPipelineColorBlendStateCreateInfo *cb_info =
|
||||
pCreateInfo->pColorBlendState;
|
||||
|
||||
@@ -1206,9 +1203,6 @@ pipeline_populate_v3d_vs_key(struct v3d_vs_key *key,
|
||||
const bool rba = p_stage->pipeline->device->features.robustBufferAccess;
|
||||
pipeline_populate_v3d_key(&key->base, p_stage, 0, rba);
|
||||
|
||||
/* Vulkan doesn't appear to specify (anv does the same) */
|
||||
key->clamp_color = false;
|
||||
|
||||
/* Vulkan specifies a point size per vertex, so true for if the prim are
|
||||
* points, like on ES2)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user