mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: rename RADV_FORCE_VRS_NONE to RADV_FORCE_VRS_1x1 and accept 1x1
It's the default value. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14713>
This commit is contained in:
parent
b4f526cc19
commit
a862e15ee7
5 changed files with 7 additions and 5 deletions
|
|
@ -689,7 +689,7 @@ RADV driver environment variables
|
|||
:envvar:`RADV_FORCE_VRS`
|
||||
allow to force per-pipeline vertex VRS rates on GFX10.3+. This is only
|
||||
forced for pipelines that don't explicitely use VRS or flat shading.
|
||||
The supported values are 2x2, 1x2 and 2x1. Only for testing purposes.
|
||||
The supported values are 2x2, 1x2, 2x1 and 1x1. Only for testing purposes.
|
||||
|
||||
:envvar:`RADV_PERFTEST`
|
||||
a comma-separated list of named flags, which do various things:
|
||||
|
|
|
|||
|
|
@ -6657,7 +6657,7 @@ radv_emit_all_graphics_states(struct radv_cmd_buffer *cmd_buffer, const struct r
|
|||
}
|
||||
}
|
||||
|
||||
if (cmd_buffer->device->force_vrs != RADV_FORCE_VRS_NONE) {
|
||||
if (cmd_buffer->device->force_vrs != RADV_FORCE_VRS_1x1) {
|
||||
struct radv_dynamic_state *d = &cmd_buffer->state.dynamic;
|
||||
uint64_t dynamic_states =
|
||||
cmd_buffer->state.dirty & cmd_buffer->state.emitted_pipeline->graphics.needed_dynamic_state;
|
||||
|
|
|
|||
|
|
@ -3223,6 +3223,8 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
device->force_vrs = RADV_FORCE_VRS_2x1;
|
||||
else if (!strcmp(vrs_rates, "1x2"))
|
||||
device->force_vrs = RADV_FORCE_VRS_1x2;
|
||||
else if (!strcmp(vrs_rates, "1x1"))
|
||||
device->force_vrs = RADV_FORCE_VRS_1x1;
|
||||
else
|
||||
fprintf(stderr, "radv: Invalid VRS rates specified "
|
||||
"(valid values are 2x2, 2x1 and 1x2)\n");
|
||||
|
|
@ -3230,7 +3232,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
|
||||
device->adjust_frag_coord_z =
|
||||
(device->vk.enabled_extensions.KHR_fragment_shading_rate ||
|
||||
device->force_vrs != RADV_FORCE_VRS_NONE) &&
|
||||
device->force_vrs != RADV_FORCE_VRS_1x1) &&
|
||||
(device->physical_device->rad_info.family == CHIP_SIENNA_CICHLID ||
|
||||
device->physical_device->rad_info.family == CHIP_NAVY_FLOUNDER ||
|
||||
device->physical_device->rad_info.family == CHIP_VANGOGH);
|
||||
|
|
|
|||
|
|
@ -3664,7 +3664,7 @@ radv_consider_force_vrs(const struct radv_pipeline *pipeline, bool noop_fs, nir_
|
|||
{
|
||||
struct radv_device *device = pipeline->device;
|
||||
|
||||
if (device->force_vrs == RADV_FORCE_VRS_NONE)
|
||||
if (device->force_vrs == RADV_FORCE_VRS_1x1)
|
||||
return false;
|
||||
|
||||
/* Only VS and GS are supported for now. */
|
||||
|
|
|
|||
|
|
@ -742,7 +742,7 @@ struct radv_device_border_color_data {
|
|||
};
|
||||
|
||||
enum radv_force_vrs {
|
||||
RADV_FORCE_VRS_NONE = 0,
|
||||
RADV_FORCE_VRS_1x1 = 0,
|
||||
RADV_FORCE_VRS_2x2,
|
||||
RADV_FORCE_VRS_2x1,
|
||||
RADV_FORCE_VRS_1x2,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue