mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
gallium: test for FEATURE_convolution
This commit is contained in:
parent
cfe8763714
commit
b19e8f720b
1 changed files with 4 additions and 0 deletions
|
|
@ -26,7 +26,9 @@
|
|||
**************************************************************************/
|
||||
|
||||
#include "main/imports.h"
|
||||
#if FEATURE_convolution
|
||||
#include "main/convolve.h"
|
||||
#endif
|
||||
#include "main/enums.h"
|
||||
#include "main/image.h"
|
||||
#include "main/macros.h"
|
||||
|
|
@ -517,10 +519,12 @@ st_TexImage(GLcontext * ctx,
|
|||
stImage->face = _mesa_tex_target_to_face(target);
|
||||
stImage->level = level;
|
||||
|
||||
#if FEATURE_convolution
|
||||
if (ctx->_ImageTransferState & IMAGE_CONVOLUTION_BIT) {
|
||||
_mesa_adjust_image_for_convolution(ctx, dims, &postConvWidth,
|
||||
&postConvHeight);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* choose the texture format */
|
||||
texImage->TexFormat = st_ChooseTextureFormat(ctx, internalFormat,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue