lavapipe: add support for anisotropic texturing
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8804>
This commit is contained in:
committed by
Dave Airlie
parent
0d4d7594d1
commit
1769ce3404
@@ -410,7 +410,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures(
|
||||
.largePoints = true,
|
||||
.alphaToOne = true,
|
||||
.multiViewport = true,
|
||||
.samplerAnisotropy = false, /* FINISHME */
|
||||
.samplerAnisotropy = true,
|
||||
.textureCompressionETC2 = false,
|
||||
.textureCompressionASTC_LDR = false,
|
||||
.textureCompressionBC = true,
|
||||
|
||||
@@ -865,7 +865,10 @@ static void fill_sampler(struct pipe_sampler_state *ss,
|
||||
ss->min_lod = samp->create_info.minLod;
|
||||
ss->max_lod = samp->create_info.maxLod;
|
||||
ss->lod_bias = samp->create_info.mipLodBias;
|
||||
ss->max_anisotropy = samp->create_info.maxAnisotropy;
|
||||
if (samp->create_info.anisotropyEnable)
|
||||
ss->max_anisotropy = samp->create_info.maxAnisotropy;
|
||||
else
|
||||
ss->max_anisotropy = 1;
|
||||
ss->normalized_coords = !samp->create_info.unnormalizedCoordinates;
|
||||
ss->compare_mode = samp->create_info.compareEnable ? PIPE_TEX_COMPARE_R_TO_TEXTURE : PIPE_TEX_COMPARE_NONE;
|
||||
ss->compare_func = samp->create_info.compareOp;
|
||||
|
||||
Reference in New Issue
Block a user