Gallium: Add new CAP that indicated whether IO array definitions can be shriked
PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS is added to indicate whether the TGSI pass to shrink IO arrays should be skipped to enforce the originally declared array sizes and locations instead. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
a182adfd83
commit
872519c663
|
@ -322,6 +322,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
|
||||||
case PIPE_CAP_MAX_COMBINED_HW_ATOMIC_COUNTERS:
|
case PIPE_CAP_MAX_COMBINED_HW_ATOMIC_COUNTERS:
|
||||||
case PIPE_CAP_MAX_COMBINED_HW_ATOMIC_COUNTER_BUFFERS:
|
case PIPE_CAP_MAX_COMBINED_HW_ATOMIC_COUNTER_BUFFERS:
|
||||||
case PIPE_CAP_TGSI_ATOMFADD:
|
case PIPE_CAP_TGSI_ATOMFADD:
|
||||||
|
case PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case PIPE_CAP_MAX_GS_INVOCATIONS:
|
case PIPE_CAP_MAX_GS_INVOCATIONS:
|
||||||
|
|
|
@ -504,6 +504,10 @@ The integer capabilities:
|
||||||
* ``PIPE_CAP_COMPUTE_GRID_INFO_LAST_BLOCK``: Whether pipe_grid_info::last_block
|
* ``PIPE_CAP_COMPUTE_GRID_INFO_LAST_BLOCK``: Whether pipe_grid_info::last_block
|
||||||
is implemented by the driver. See struct pipe_grid_info for more details.
|
is implemented by the driver. See struct pipe_grid_info for more details.
|
||||||
* ``PIPE_CAP_COMPUTE_SHADER_DERIVATIVE``: True if the driver supports derivatives (and texture lookups with implicit derivatives) in compute shaders.
|
* ``PIPE_CAP_COMPUTE_SHADER_DERIVATIVE``: True if the driver supports derivatives (and texture lookups with implicit derivatives) in compute shaders.
|
||||||
|
* ``PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS``: Whether the TGSI pass to shrink IO
|
||||||
|
arrays should be skipped and enforce keeping the declared array sizes instead.
|
||||||
|
A driver might rely on the input mapping that was defined with the original
|
||||||
|
GLSL code.
|
||||||
|
|
||||||
.. _pipe_capf:
|
.. _pipe_capf:
|
||||||
|
|
||||||
|
|
|
@ -866,6 +866,7 @@ enum pipe_cap
|
||||||
PIPE_CAP_MAX_VARYINGS,
|
PIPE_CAP_MAX_VARYINGS,
|
||||||
PIPE_CAP_COMPUTE_GRID_INFO_LAST_BLOCK,
|
PIPE_CAP_COMPUTE_GRID_INFO_LAST_BLOCK,
|
||||||
PIPE_CAP_COMPUTE_SHADER_DERIVATIVES,
|
PIPE_CAP_COMPUTE_SHADER_DERIVATIVES,
|
||||||
|
PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue