Drop the old brw_get_line_width() helper which return the unsigned
fixed-point encoding of the line width - it's been dead since the
conversion to GENXML (which does the encoding for us).
Then rename brw_get_line_width_float() to the shorter name.
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
extern GLenum brw_fix_xRGB_alpha(GLenum function);
static inline float
-brw_get_line_width_float(struct brw_context *brw)
+brw_get_line_width(struct brw_context *brw)
{
/* From the OpenGL 4.4 spec:
*
return line_width;
}
-static inline uint32_t
-brw_get_line_width(struct brw_context *brw)
-{
- float line_width = brw_get_line_width_float(brw);
-
- return U_FIXED(line_width, 7);
-}
-
#endif
/* _NEW_LINE */
#if GEN_GEN == 8
if (brw->is_cherryview)
- sf.CHVLineWidth = brw_get_line_width_float(brw);
+ sf.CHVLineWidth = brw_get_line_width(brw);
else
- sf.LineWidth = brw_get_line_width_float(brw);
+ sf.LineWidth = brw_get_line_width(brw);
#else
- sf.LineWidth = brw_get_line_width_float(brw);
+ sf.LineWidth = brw_get_line_width(brw);
#endif
if (ctx->Line.SmoothFlag) {