mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 15:40:31 +01:00
v3dv: add subpixel precision definition
Move number of bits for subpixel precision in rasterizer to a define. Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15407>
This commit is contained in:
parent
b53dda6da8
commit
22759e9174
2 changed files with 6 additions and 5 deletions
|
|
@ -64,4 +64,7 @@
|
|||
|
||||
#define V3D_MAX_BUFFER_RANGE (1 << 27)
|
||||
|
||||
/* Sub-pixel precission bits in the rasterizer */
|
||||
#define V3D_COORD_SHIFT 6
|
||||
|
||||
#endif /* V3D_LIMITS_H */
|
||||
|
|
|
|||
|
|
@ -1346,9 +1346,7 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
|||
|
||||
const uint32_t max_varying_components = 16 * 4;
|
||||
|
||||
const uint32_t v3d_coord_shift = 6;
|
||||
|
||||
const float v3d_point_line_granularity = 2.0f / (1 << v3d_coord_shift);
|
||||
const float v3d_point_line_granularity = 2.0f / (1 << V3D_COORD_SHIFT);
|
||||
const uint32_t max_fb_size = 4096;
|
||||
|
||||
const VkSampleCountFlags supported_sample_counts =
|
||||
|
|
@ -1434,7 +1432,7 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
|||
.maxComputeWorkGroupInvocations = 256,
|
||||
.maxComputeWorkGroupSize = { 256, 256, 256 },
|
||||
|
||||
.subPixelPrecisionBits = v3d_coord_shift,
|
||||
.subPixelPrecisionBits = V3D_COORD_SHIFT,
|
||||
.subTexelPrecisionBits = 8,
|
||||
.mipmapPrecisionBits = 8,
|
||||
.maxDrawIndexedIndexValue = 0x00ffffff,
|
||||
|
|
@ -1456,7 +1454,7 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
|||
.maxTexelGatherOffset = 7,
|
||||
.minInterpolationOffset = -0.5,
|
||||
.maxInterpolationOffset = 0.5,
|
||||
.subPixelInterpolationOffsetBits = v3d_coord_shift,
|
||||
.subPixelInterpolationOffsetBits = V3D_COORD_SHIFT,
|
||||
.maxFramebufferWidth = max_fb_size,
|
||||
.maxFramebufferHeight = max_fb_size,
|
||||
.maxFramebufferLayers = 256,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue