Lines Matching refs:format_desc

2838         const struct wined3d_format_desc *format_desc = getFormatDescEntry(Format, &This->adapters[Adapter].gl_info);
2839 UINT format_bits = format_desc->byte_count * CHAR_BIT;
2885 const struct wined3d_format_desc *format_desc = getFormatDescEntry(Format, &This->adapters[Adapter].gl_info);
2886 UINT format_bits = format_desc->byte_count * CHAR_BIT;
3152 const WineD3D_PixelFormat *cfg, const struct wined3d_format_desc *format_desc)
3160 if (format_desc->Flags & WINED3DFMT_FLAG_FLOAT) return FALSE;
3163 if (!getColorBits(format_desc, &redSize, &greenSize, &blueSize, &alphaSize, &colorBits))
3165 ERR("Unable to check compatibility for Format=%s\n", debug_d3dformat(format_desc->format));
3189 const WineD3D_PixelFormat *cfg, const struct wined3d_format_desc *format_desc)
3197 if (!getDepthStencilBits(format_desc, &depthSize, &stencilSize))
3199 ERR("Unable to check compatibility for Format=%s\n", debug_d3dformat(format_desc->format));
3204 if (format_desc->Flags & WINED3DFMT_FLAG_FLOAT) return FALSE;
3206 if ((format_desc->format == WINED3DFMT_D16_LOCKABLE) || (format_desc->format == WINED3DFMT_D32_FLOAT))
3462 WINED3DDEVTYPE DeviceType, const struct wined3d_format_desc *format_desc)
3464 switch(format_desc->format)
3474 if (adapter->fragment_pipe->color_fixup_supported(format_desc->color_fixup))
3521 static BOOL CheckFilterCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc)
3524 if (format_desc->Flags & WINED3DFMT_FLAG_FILTERING) return TRUE;
3573 static BOOL CheckSrgbReadCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc)
3584 switch (format_desc->format)
3600 TRACE_(d3d_caps)("[FAILED] Gamma texture format %s not supported.\n", debug_d3dformat(format_desc->format));
3607 WINED3DDEVTYPE DeviceType, const struct wined3d_format_desc *format_desc)
3612 if ((format_desc->format == WINED3DFMT_B8G8R8X8_UNORM) || (format_desc->format == WINED3DFMT_B8G8R8A8_UNORM))
3624 TRACE_(d3d_caps)("[FAILED] - no SRGB writing support on format=%s\n", debug_d3dformat(format_desc->format));
3630 const struct wined3d_format_desc *format_desc)
3633 if (format_desc->Flags & WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING) return TRUE;
3638 static BOOL CheckWrapAndMipCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc)
3654 WINED3DDEVTYPE DeviceType, const struct wined3d_format_desc *format_desc)
3658 switch (format_desc->format)
3734 if (adapter->shader_backend->shader_color_fixup_supported(format_desc->color_fixup))
3850 if (adapter->shader_backend->shader_color_fixup_supported(format_desc->color_fixup)
3851 && adapter->fragment_pipe->color_fixup_supported(format_desc->color_fixup))
3878 ERR("Unhandled format=%s\n", debug_d3dformat(format_desc->format));
3938 const struct wined3d_format_desc *format_desc)
3948 switch (format_desc->format)
3973 const struct wined3d_format_desc *format_desc = getFormatDescEntry(CheckFormat, gl_info);
4009 if (CheckTextureCapability(adapter, DeviceType, format_desc))
4027 if(CheckRenderTargetCapability(adapter, adapter_format_desc, format_desc))
4042 if (CheckFilterCapability(adapter, format_desc))
4053 if (CheckPostPixelShaderBlendingCapability(adapter, format_desc))
4064 if (CheckSrgbReadCapability(adapter, format_desc))
4075 if (CheckSrgbWriteCapability(adapter, DeviceType, format_desc))
4086 if (CheckVertexTextureCapability(adapter, format_desc))
4097 if (CheckWrapAndMipCapability(adapter, format_desc))
4120 if (CheckSurfaceCapability(adapter, adapter_format_desc, DeviceType, format_desc, SurfaceType))
4123 if (CheckDepthStencilCapability(adapter, adapter_format_desc, format_desc))
4133 if (CheckRenderTargetCapability(adapter, adapter_format_desc, format_desc))
4144 if (CheckPostPixelShaderBlendingCapability(adapter, format_desc))
4176 if (CheckTextureCapability(adapter, DeviceType, format_desc))
4194 if (CheckRenderTargetCapability(adapter, adapter_format_desc, format_desc))
4209 if (CheckFilterCapability(adapter, format_desc))
4220 if (CheckBumpMapCapability(adapter, DeviceType, format_desc))
4231 if (CheckPostPixelShaderBlendingCapability(adapter, format_desc))
4242 if (CheckSrgbReadCapability(adapter, format_desc))
4253 if (CheckSrgbWriteCapability(adapter, DeviceType, format_desc))
4264 if (CheckVertexTextureCapability(adapter, format_desc))
4275 if (CheckWrapAndMipCapability(adapter, format_desc))
4285 if (CheckDepthStencilCapability(adapter, adapter_format_desc, format_desc))
4316 if (!CheckTextureCapability(adapter, DeviceType, format_desc))
4332 if (CheckFilterCapability(adapter, format_desc))
4343 if (CheckPostPixelShaderBlendingCapability(adapter, format_desc))
4354 if (CheckSrgbReadCapability(adapter, format_desc))
4365 if (CheckSrgbWriteCapability(adapter, DeviceType, format_desc))
4376 if (CheckVertexTextureCapability(adapter, format_desc))
4387 if (CheckWrapAndMipCapability(adapter, format_desc))