Bug 27248 - Mesa slang float to int casting bug
Summary: Mesa slang float to int casting bug
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords: janitor
Depends on:
Blocks:
 
Reported: 2010-03-22 10:04 UTC by alex
Modified: 2011-03-02 05:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description alex 2010-03-22 10:04:51 UTC
i believe where is a typo in :

slang_typeinfo.c

allowing "float to int" conversation instead of "int to float":

this :
slang_type_specifier_compatible(const slang_type_specifier * x,
                                const slang_type_specifier * y)
{
   /* special case: float == int */
   if (x->type == SLANG_SPEC_INT && y->type == SLANG_SPEC_FLOAT) {
      return GL_TRUE;
   }
should be replaced with :
   if (x->type == SLANG_SPEC_FLOAT && y->type == SLANG_SPEC_INT) {
Comment 1 Marek Olšák 2011-03-02 05:49:38 UTC
Because the GLSL has been rewritten, this bug is no longer relevant.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.