mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
i965/miptree: Use > 1 instead of > 0 to check for multisampling
Checking against zero currently works as single sampling is represented with zero. Once one moves to isl single sampling really has sample number of one. This keeps later patches simpler. Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
8fd18642e7
commit
38f3d03ea9
1 changed files with 2 additions and 2 deletions
|
|
@ -298,7 +298,7 @@ intel_miptree_blit(struct brw_context *brw,
|
|||
GLenum logicop)
|
||||
{
|
||||
/* The blitter doesn't understand multisampling at all. */
|
||||
if (src_mt->num_samples > 0 || dst_mt->num_samples > 0)
|
||||
if (src_mt->num_samples > 1 || dst_mt->num_samples > 1)
|
||||
return false;
|
||||
|
||||
/* No sRGB decode or encode is done by the hardware blitter, which is
|
||||
|
|
@ -371,7 +371,7 @@ intel_miptree_copy(struct brw_context *brw,
|
|||
uint32_t src_width, uint32_t src_height)
|
||||
{
|
||||
/* The blitter doesn't understand multisampling at all. */
|
||||
if (src_mt->num_samples > 0 || dst_mt->num_samples > 0)
|
||||
if (src_mt->num_samples > 1 || dst_mt->num_samples > 1)
|
||||
return false;
|
||||
|
||||
if (src_mt->format == MESA_FORMAT_S_UINT8)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue